{"id":409,"date":"2023-03-03T06:39:42","date_gmt":"2023-03-03T06:39:42","guid":{"rendered":"https:\/\/www.dedicatedcore.com\/blog\/?p=409"},"modified":"2024-10-15T10:50:31","modified_gmt":"2024-10-15T10:50:31","slug":"add-and-delete-user-ubuntu","status":"publish","type":"post","link":"https:\/\/www.dedicatedcore.com\/blog\/add-and-delete-user-ubuntu\/","title":{"rendered":"How to Add and Remove User in Ubuntu"},"content":{"rendered":"<p>System administrators and those who administer systems based on Ubuntu must perform the primary duty of adding and deleting users on Ubuntu 20.04. You can ensure secure and efficient management of your system by setting up user accounts that can be used to grant certain rights and access to various users. Hope we will help by adding and deleting users on Ubuntu 20.04.\u00a0 A step-by-step so you can manage user accounts and uphold system security. Increasing your productivity in Linux with an <a href=\"https:\/\/www.dedicatedcore.com\/blog\/install-zsh-ubuntu\/\" target=\"_blank\" rel=\"noopener\">improved shell<\/a> and integrating Zsh into your Ubuntu environment by pursuing steps can be a game-changer.<\/p>\n<p>Running as the root user provides you total authority over a system&#8217;s users, but it can also be risky and even harmful. Adding an unprivileged user and performing typical system administration operations without root access is preferable. For any additional non-privileged users you might have on your system, you can also create new accounts. On a system, every user ought to have a unique account.<\/p>\n<p>On Ubuntu systems, a program named sudo is installed for tasks that demand administrator rights. In a nutshell, sudo enables you to execute commands as another user, including one who has administrative rights. You&#8217;ll discover how to establish user accounts, grant sudo rights, and remove users in this manual.<\/p>\n<h4>Adding User<\/h4>\n<p>You can create a new user at any time by executing the following command while logged in as the root user:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># adduser newuser<\/pre>\n<p>With the following command, you can add a new user if you are logged in as a non-root user and have sudo access:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ sudo adduser newuser<\/pre>\n<p>In either case, you must respond to the following inquiries:<\/p>\n<ul>\n<li>Give the new user a password, and then confirm it.<\/li>\n<li>Add any more details you have about the new user. If you don&#8217;t want to use these fields, you can skip over them by using the ENTER key.<\/li>\n<li>Finally, you&#8217;ll be prompted to affirm that the data you supplied was accurate. Press Y to proceed.<\/li>\n<\/ul>\n<p>Now that your new user is ready to use, you can log in. Continue to the following section if your new user requires administrative rights.<\/p>\n<h4>Providing Sudo Privileges to a User<\/h4>\n<p>You must grant the new user access to sudo if you want them to be able to run commands with root (administrative) privileges. Let&#8217;s look at two methods for doing this task: first, adding the user to a sudo user group that has already been created, and second, configuring sudo to specify privileges on a per-user basis.<\/p>\n<h4>Making the New User a Member of the Sudo Group<\/h4>\n<p>On Ubuntu 20.04 computers, sudo is set up by default to give every member of the sudo group full privileges.<\/p>\n<p>With the group&#8217;s command, you may see which groups your new user belongs to:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ groups newuser<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-410\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/add-new-user-sudo-group.png\" alt=\"command to add a new user to sudo group\" width=\"800\" height=\"118\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/add-new-user-sudo-group.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/add-new-user-sudo-group-300x44.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/add-new-user-sudo-group-150x22.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/add-new-user-sudo-group-768x113.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/add-new-user-sudo-group-100x15.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/add-new-user-sudo-group-700x103.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>Because adduser produces this in addition to the user profile, a new user initially just belongs to their own group. A user has the same name as the group it belongs to. You can use the usermod command to include the user in a new group:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># usermod -aG sudo newuser<\/pre>\n<p>The -aG option instructs usermod to include the specified user in the groups.<\/p>\n<p>Please be aware that the usermod command itself needs sudo access. As a result, you can only add users to the sudo group if you are logged in as either the root user or another user who has already been assigned to the sudo group. In the latter scenario, you will need to use sudo before this command, like in the following example:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ sudo usermod -aG sudo newuser<\/pre>\n<h4>Adding explicit user privileges to the sudoers file in \/etc<\/h4>\n<p>Instead of adding your user to the sudo group, you can use the visudo command to open the system&#8217;s default editor and manually set each user&#8217;s capabilities in the configuration file \/etc\/sudoers.<\/p>\n<p>Because it locks the file against multiple concurrent edits and validates the contents of the file before overwriting it, visudo is the sole method advised for making changes to \/etc\/sudoers. By doing this, you can avoid accidentally misconfiguring sudo and being unable to fix the issue because you no longer have sudo rights.<\/p>\n<p>Run the following commands if you are currently logged in as root:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># visudo<\/pre>\n<p>Run the same command with the sudo prefix if you are logged in as a non-root user with sudo privileges:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ sudo visudo<\/pre>\n<p>Traditionally, the vi editor was opened when visudo opened \/etc\/sudoers, which can be confusing for novice users. On fresh Ubuntu installations, visudo will automatically switch to the more practical and user-friendly nano text editor. Locate the line that reads as follows using the arrow keys to move the cursor:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-411\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/run-sudo-visudo-root-user.png\" alt=\"run command sudo visudo for specifying user\" width=\"800\" height=\"100\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/run-sudo-visudo-root-user.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/run-sudo-visudo-root-user-300x38.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/run-sudo-visudo-root-user-150x19.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/run-sudo-visudo-root-user-768x96.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/run-sudo-visudo-root-user-100x13.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/run-sudo-visudo-root-user-700x88.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>Include the highlighted line after this one. Make careful to replace newuser with the name of the user profile you want to provide sudo access to:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-412\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/root-user-sudo-privileges.png\" alt=\"command for new user root all sudo privileges\" width=\"800\" height=\"121\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/root-user-sudo-privileges.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/root-user-sudo-privileges-300x45.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/root-user-sudo-privileges-150x23.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/root-user-sudo-privileges-768x116.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/root-user-sudo-privileges-100x15.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/root-user-sudo-privileges-700x106.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>Each user that needs to have full sudo access should have their own line added, like this. Press CTRL + X, Y, and ENTER to confirm your decision to save and dismiss the file when you are finished.<\/p>\n<h4>Testing the Sudo Privileges of Your User<\/h4>\n<p>Your newly created user can now issue commands with administrative rights.<\/p>\n<p>You can run commands as your regular user whilst logged in as the new user by typing the following commands:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ some_command<\/pre>\n<p>By adding sudo before the command, you can run the identical operation with administrative rights:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ sudo some_command<\/pre>\n<p>You will be required to enter the password for the ordinary user account you are currently signed in to when you do this.<\/p>\n<h4>The user To be Deleted<\/h4>\n<p>It&#8217;s wise to delete the old account if you decide you don&#8217;t need the user any longer.<\/p>\n<p>Run the following command as root to delete the user without removing any of their files:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># deluser newuser<\/pre>\n<p>You would use the following if you were logged in as a non-root user with sudo privileges:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ sudo deluser newuser<\/pre>\n<p>Instead, you can use the following command to have root erase the user&#8217;s home directory when the user is deleted:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># deluser --remove-home newuser<\/pre>\n<p>The identical command would be entered with the sudo prefix if you were running it as a non-root user with sudo privileges:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ sudo deluser --remove-home newuser<\/pre>\n<p>You might wish to remove the pertinent line once more if the user you deactivated had sudo rights previously configured:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># visudo<\/pre>\n<p>Alternatively, if you have sudo rights and are a non-root user, run the command below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ sudo visudo<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-413\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/non-root-user-sudo-privileges.png\" alt=\"command for non-root user with sudo privileges\" width=\"800\" height=\"121\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/non-root-user-sudo-privileges.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/non-root-user-sudo-privileges-300x45.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/non-root-user-sudo-privileges-150x23.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/non-root-user-sudo-privileges-768x116.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/non-root-user-sudo-privileges-100x15.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/non-root-user-sudo-privileges-700x106.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>This will stop an unintentional grant of sudo privileges to a newly formed user with the same name.<\/p>\n<h4>Conclusion<\/h4>\n<p>The ability to manage user accounts on Ubuntu 20.04 is crucial for system administrators and anyone in charge of system security. You can quickly create and delete users and grant or revoke access as necessary by following the guidelines in this manual. Always use caution while carrying out administrative duties, and confirm that you have the required rights and permissions before making any alterations.<\/p>\n<p>You can efficiently regulate access and uphold a secure environment on your Ubuntu 20.04 system with the help of these user management skills. Now that you know how to add and remove users from your Ubuntu 20.04 system, you should be able to do it with relative ease. You may divide users and grant them only the access necessary for them to do their tasks if you have effective user management.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>System administrators and those who administer systems based on Ubuntu must perform the primary duty of adding and deleting users on Ubuntu 20.04. You can&#8230;<\/p>\n","protected":false},"author":1,"featured_media":515,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"System administrators and those who administer systems based on Ubuntu must perform the primary duty of adding and deleting users on Ubuntu 20.04. You can ensure secure and efficient management of your system by setting up user accounts that can be used to grant certain rights and access to various users. Hope we will help\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"DC Team\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.dedicatedcore.com\/blog\/add-and-delete-user-ubuntu\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"DedicatedCore Blog - Great platform to start your startup journey\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How to Add\/Remove Users in Ubuntu 22.04: Sudo Privileges\" \/>\n\t\t<meta property=\"og:description\" content=\"System administrators and those who administer systems based on Ubuntu must perform the primary duty of adding and deleting users on Ubuntu 20.04. You can ensure secure and efficient management of your system by setting up user accounts that can be used to grant certain rights and access to various users. Hope we will help\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.dedicatedcore.com\/blog\/add-and-delete-user-ubuntu\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-03-03T06:39:42+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-10-15T10:50:31+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to Add\/Remove Users in Ubuntu 22.04: Sudo Privileges\" \/>\n\t\t<meta name=\"twitter:description\" content=\"System administrators and those who administer systems based on Ubuntu must perform the primary duty of adding and deleting users on Ubuntu 20.04. You can ensure secure and efficient management of your system by setting up user accounts that can be used to grant certain rights and access to various users. Hope we will help\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/add-and-delete-user-ubuntu\\\/#blogposting\",\"name\":\"How to Add\\\/Remove Users in Ubuntu 22.04: Sudo Privileges\",\"headline\":\"How to Add and Remove User in Ubuntu\",\"author\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/author\\\/iseenlab\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/wp-content\\\/uploads\\\/ubuntu-add-removing-user.png\",\"width\":750,\"height\":380,\"caption\":\"add and remove user in ubuntu\"},\"datePublished\":\"2023-03-03T06:39:42+00:00\",\"dateModified\":\"2024-10-15T10:50:31+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/add-and-delete-user-ubuntu\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/add-and-delete-user-ubuntu\\\/#webpage\"},\"articleSection\":\"Uncategorized\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/add-and-delete-user-ubuntu\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/c\\\/uncategorized\\\/#listItem\",\"name\":\"Uncategorized\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/c\\\/uncategorized\\\/#listItem\",\"position\":2,\"name\":\"Uncategorized\",\"item\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/c\\\/uncategorized\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/add-and-delete-user-ubuntu\\\/#listItem\",\"name\":\"How to Add and Remove User in Ubuntu\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/add-and-delete-user-ubuntu\\\/#listItem\",\"position\":3,\"name\":\"How to Add and Remove User in Ubuntu\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/c\\\/uncategorized\\\/#listItem\",\"name\":\"Uncategorized\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/#organization\",\"name\":\"DedicatedCore\",\"description\":\"Great platform to start your startup journey\",\"url\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/\",\"telephone\":\"+919112444404\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/author\\\/iseenlab\\\/#author\",\"url\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/author\\\/iseenlab\\\/\",\"name\":\"DC Team\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/add-and-delete-user-ubuntu\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b10cf0351b12192a46d71dedb93fe77b?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"DC Team\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/add-and-delete-user-ubuntu\\\/#webpage\",\"url\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/add-and-delete-user-ubuntu\\\/\",\"name\":\"How to Add\\\/Remove Users in Ubuntu 22.04: Sudo Privileges\",\"description\":\"System administrators and those who administer systems based on Ubuntu must perform the primary duty of adding and deleting users on Ubuntu 20.04. You can ensure secure and efficient management of your system by setting up user accounts that can be used to grant certain rights and access to various users. Hope we will help\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/add-and-delete-user-ubuntu\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/author\\\/iseenlab\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/author\\\/iseenlab\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/wp-content\\\/uploads\\\/ubuntu-add-removing-user.png\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/add-and-delete-user-ubuntu\\\/#mainImage\",\"width\":750,\"height\":380,\"caption\":\"add and remove user in ubuntu\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/add-and-delete-user-ubuntu\\\/#mainImage\"},\"datePublished\":\"2023-03-03T06:39:42+00:00\",\"dateModified\":\"2024-10-15T10:50:31+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/\",\"name\":\"DedicatedCore Blog\",\"description\":\"Great platform to start your startup journey\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to Add\/Remove Users in Ubuntu 22.04: Sudo Privileges","description":"System administrators and those who administer systems based on Ubuntu must perform the primary duty of adding and deleting users on Ubuntu 20.04. You can ensure secure and efficient management of your system by setting up user accounts that can be used to grant certain rights and access to various users. Hope we will help","canonical_url":"https:\/\/www.dedicatedcore.com\/blog\/add-and-delete-user-ubuntu\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.dedicatedcore.com\/blog\/add-and-delete-user-ubuntu\/#blogposting","name":"How to Add\/Remove Users in Ubuntu 22.04: Sudo Privileges","headline":"How to Add and Remove User in Ubuntu","author":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/author\/iseenlab\/#author"},"publisher":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/ubuntu-add-removing-user.png","width":750,"height":380,"caption":"add and remove user in ubuntu"},"datePublished":"2023-03-03T06:39:42+00:00","dateModified":"2024-10-15T10:50:31+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/add-and-delete-user-ubuntu\/#webpage"},"isPartOf":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/add-and-delete-user-ubuntu\/#webpage"},"articleSection":"Uncategorized"},{"@type":"BreadcrumbList","@id":"https:\/\/www.dedicatedcore.com\/blog\/add-and-delete-user-ubuntu\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.dedicatedcore.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.dedicatedcore.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.dedicatedcore.com\/blog\/c\/uncategorized\/#listItem","name":"Uncategorized"}},{"@type":"ListItem","@id":"https:\/\/www.dedicatedcore.com\/blog\/c\/uncategorized\/#listItem","position":2,"name":"Uncategorized","item":"https:\/\/www.dedicatedcore.com\/blog\/c\/uncategorized\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.dedicatedcore.com\/blog\/add-and-delete-user-ubuntu\/#listItem","name":"How to Add and Remove User in Ubuntu"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.dedicatedcore.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.dedicatedcore.com\/blog\/add-and-delete-user-ubuntu\/#listItem","position":3,"name":"How to Add and Remove User in Ubuntu","previousItem":{"@type":"ListItem","@id":"https:\/\/www.dedicatedcore.com\/blog\/c\/uncategorized\/#listItem","name":"Uncategorized"}}]},{"@type":"Organization","@id":"https:\/\/www.dedicatedcore.com\/blog\/#organization","name":"DedicatedCore","description":"Great platform to start your startup journey","url":"https:\/\/www.dedicatedcore.com\/blog\/","telephone":"+919112444404"},{"@type":"Person","@id":"https:\/\/www.dedicatedcore.com\/blog\/author\/iseenlab\/#author","url":"https:\/\/www.dedicatedcore.com\/blog\/author\/iseenlab\/","name":"DC Team","image":{"@type":"ImageObject","@id":"https:\/\/www.dedicatedcore.com\/blog\/add-and-delete-user-ubuntu\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/b10cf0351b12192a46d71dedb93fe77b?s=96&d=mm&r=g","width":96,"height":96,"caption":"DC Team"}},{"@type":"WebPage","@id":"https:\/\/www.dedicatedcore.com\/blog\/add-and-delete-user-ubuntu\/#webpage","url":"https:\/\/www.dedicatedcore.com\/blog\/add-and-delete-user-ubuntu\/","name":"How to Add\/Remove Users in Ubuntu 22.04: Sudo Privileges","description":"System administrators and those who administer systems based on Ubuntu must perform the primary duty of adding and deleting users on Ubuntu 20.04. You can ensure secure and efficient management of your system by setting up user accounts that can be used to grant certain rights and access to various users. Hope we will help","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/add-and-delete-user-ubuntu\/#breadcrumblist"},"author":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/author\/iseenlab\/#author"},"creator":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/author\/iseenlab\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/ubuntu-add-removing-user.png","@id":"https:\/\/www.dedicatedcore.com\/blog\/add-and-delete-user-ubuntu\/#mainImage","width":750,"height":380,"caption":"add and remove user in ubuntu"},"primaryImageOfPage":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/add-and-delete-user-ubuntu\/#mainImage"},"datePublished":"2023-03-03T06:39:42+00:00","dateModified":"2024-10-15T10:50:31+00:00"},{"@type":"WebSite","@id":"https:\/\/www.dedicatedcore.com\/blog\/#website","url":"https:\/\/www.dedicatedcore.com\/blog\/","name":"DedicatedCore Blog","description":"Great platform to start your startup journey","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"DedicatedCore Blog - Great platform to start your startup journey","og:type":"article","og:title":"How to Add\/Remove Users in Ubuntu 22.04: Sudo Privileges","og:description":"System administrators and those who administer systems based on Ubuntu must perform the primary duty of adding and deleting users on Ubuntu 20.04. You can ensure secure and efficient management of your system by setting up user accounts that can be used to grant certain rights and access to various users. Hope we will help","og:url":"https:\/\/www.dedicatedcore.com\/blog\/add-and-delete-user-ubuntu\/","article:published_time":"2023-03-03T06:39:42+00:00","article:modified_time":"2024-10-15T10:50:31+00:00","twitter:card":"summary_large_image","twitter:title":"How to Add\/Remove Users in Ubuntu 22.04: Sudo Privileges","twitter:description":"System administrators and those who administer systems based on Ubuntu must perform the primary duty of adding and deleting users on Ubuntu 20.04. You can ensure secure and efficient management of your system by setting up user accounts that can be used to grant certain rights and access to various users. Hope we will help"},"aioseo_meta_data":{"post_id":"409","title":"How to Add\/Remove Users in Ubuntu 22.04: Sudo Privileges","description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"limit_modified_date":false,"created":"2023-10-27 03:32:02","updated":"2026-08-13 15:32:01","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.dedicatedcore.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.dedicatedcore.com\/blog\/c\/uncategorized\/\" title=\"Uncategorized\">Uncategorized<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to Add and Remove User in Ubuntu\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.dedicatedcore.com\/blog"},{"label":"Uncategorized","link":"https:\/\/www.dedicatedcore.com\/blog\/c\/uncategorized\/"},{"label":"How to Add and Remove User in Ubuntu","link":"https:\/\/www.dedicatedcore.com\/blog\/add-and-delete-user-ubuntu\/"}],"_links":{"self":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts\/409"}],"collection":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/comments?post=409"}],"version-history":[{"count":5,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts\/409\/revisions"}],"predecessor-version":[{"id":2455,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts\/409\/revisions\/2455"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/media\/515"}],"wp:attachment":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/media?parent=409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/categories?post=409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/tags?post=409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}