{"id":5954,"date":"2023-07-15T00:26:31","date_gmt":"2023-07-15T00:26:31","guid":{"rendered":"https:\/\/www.webhi.com\/how-to\/?p=5954"},"modified":"2023-07-15T00:26:34","modified_gmt":"2023-07-15T00:26:34","slug":"how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat","status":"publish","type":"post","link":"https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/","title":{"rendered":"How to Add and Delete Users on CentOS \/ Ubuntu: A Comprehensive Guide"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/users_management_en.jpg\" alt=\"Add and Delete Users on CentOS \/ Ubuntu Debian Redhat RHEL Alma Linux \" class=\"wp-image-5987\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/users_management_en.jpg 1200w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/users_management_en-300x169.jpg 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/users_management_en-1024x576.jpg 1024w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/users_management_en-768x432.jpg 768w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/users_management_en-150x84.jpg 150w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"introduction\">Introduction<\/h2>\n\n\n\n<p>Managing user accounts is an essential task for system administrators, whether you&#8217;re using <strong>CentOS \/ RedHat or Ubuntu \/ Debian <\/strong>as your operating system. Adding and deleting users is a routine part of system administration and helps ensure the security and proper access control on your server. In this article, we will provide you with a step-by-step guide on how to add and delete users on both CentOS and Debian.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-adding-users\">I. Adding Users<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"adding-users-on-centos\">1 \u2013 Adding users on CentOS<\/h3>\n\n\n\n<ul>\n<li>Open a terminal and log in to your CentOS system as the root user or a user with sudo privileges.<\/li>\n\n\n\n<li>To add a new user, use the&nbsp;<code>useradd<\/code>&nbsp;command followed by the username. For example, to add a user named &#8220;john,&#8221; type the following command:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo useradd john<\/code><\/pre>\n\n\n\n<ul>\n<li>Set a password for the new user using the&nbsp;<code>passwd<\/code>&nbsp;command:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo passwd john<\/code><\/pre>\n\n\n\n<p>You will be prompted to enter and confirm the password.<\/p>\n\n\n\n<ul>\n<li>By default, the user will be added to a group with the same name as the username. To add the user to additional groups, use the&nbsp;<code>usermod<\/code>&nbsp;command:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo usermod -aG groupname john<\/code><\/pre>\n\n\n\n<p>Replace &#8220;groupname&#8221; with the desired group name and &#8220;john&#8221; with the username.<\/p>\n\n\n\n<ul>\n<li>Once you&#8217;ve added the user, you can switch to the newly created account using the&nbsp;<code>su<\/code>&nbsp;command:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo su - john<\/code><\/pre>\n\n\n\n<p>You will be prompted to enter the password for the user.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"adding-users-on-debian\">2 \u2013 Adding users on Debian<\/h3>\n\n\n\n<ul>\n<li>Open a terminal and log in to your Debian system as the root user or a user with sudo privileges.<\/li>\n\n\n\n<li>To add a new user, use the&nbsp;<code>adduser<\/code>&nbsp;command followed by the username. For example, to add a user named &#8220;john,&#8221; type the following command:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo adduser john<\/code><\/pre>\n\n\n\n<p>You will be prompted to set a password and enter additional user information.<\/p>\n\n\n\n<ul>\n<li>If you want to add the user to a specific group, specify the group name during the user creation process.<\/li>\n\n\n\n<li>Once the user is created, you can switch to the new account using the&nbsp;<code>su<\/code>&nbsp;command:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo su - john<\/code><\/pre>\n\n\n\n<p>Enter the password for the user to access the account.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ii-granting-sudo-privileges-to-a-users\">II. Granting Sudo Privileges to a Users<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"granting-sudo-privileges-to-a-user-on-centos\">1 \u2013 Granting Sudo Privileges to a User on CentOS<\/h3>\n\n\n\n<p>If you want to give your new user the ability to execute commands with root (administrative) privileges, you need to grant them access to&nbsp;<code>sudo<\/code>.<\/p>\n\n\n\n<p>One way to do this is by adding the user to the&nbsp;<strong>wheel<\/strong>&nbsp;group, which automatically provides&nbsp;<code>sudo<\/code>&nbsp;access to all its members.<\/p>\n\n\n\n<p>To add the user to the&nbsp;<strong>wheel<\/strong>&nbsp;group, use the&nbsp;<code>usermod<\/code>&nbsp;command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo usermod -aG wheel john<\/code><\/pre>\n\n\n\n<p>Now, your new user can execute commands with administrative privileges. Simply prepend&nbsp;<code>sudo<\/code>&nbsp;before the command you want to run as an administrator:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo some_command<\/code><\/pre>\n\n\n\n<p>You will be prompted to enter your user account password (not the root password). After entering the correct password, the command will be executed with root privileges.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"granting-sudo-privileges-to-a-user-on-debian\">2 \u2013 Granting Sudo Privileges to a User on Debian<\/h3>\n\n\n\n<p>If you want to enable your new user to execute commands with root (administrative) privileges, you can grant them access to&nbsp;<code>sudo<\/code>. There are two approaches to accomplish this: adding the user to the pre-defined&nbsp;<strong>sudo<\/strong>&nbsp;group or specifying privileges on a per-user basis in the&nbsp;<code>sudo<\/code>&nbsp;configuration.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"adding-the-user-to-the-sudo-group\">Adding the User to the Sudo Group<\/h4>\n\n\n\n<p>By default,&nbsp;<code>sudo<\/code>&nbsp;on Debian systems is configured to grant full privileges to any user in the&nbsp;<strong>sudo<\/strong>&nbsp;group.<\/p>\n\n\n\n<p>You can check which groups your new user belongs to using the&nbsp;<code>groups<\/code>&nbsp;command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo groups john<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">Output:\njohn : john<\/code><\/pre>\n\n\n\n<p>By default, a new user is only in their own group, which is created by&nbsp;<code>adduser<\/code>&nbsp;and shares the same name as the user. To add the user to a different group, you can utilize the&nbsp;<code>usermod<\/code>&nbsp;command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo usermod -aG sudo john<\/code><\/pre>\n\n\n\n<p>The&nbsp;<code>-aG<\/code>&nbsp;option tells&nbsp;<code>usermod<\/code>&nbsp;to add the user to the specified groups.<\/p>\n\n\n\n<p>Keep in mind that the&nbsp;<code>usermod<\/code>&nbsp;command itself requires&nbsp;<code>sudo<\/code>&nbsp;privileges. Therefore, you can only add users to the&nbsp;<code>sudo<\/code>&nbsp;group if you are logged in as the root user or as another user who is already a member of the&nbsp;<code>sudo<\/code>&nbsp;group. In the latter case, you will need to precede the command with&nbsp;<code>sudo<\/code>, as shown in the example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo sudo usermod -aG sudo john<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"iii-deleting-users\">III. Deleting Users<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"deleting-users-on-centos\">1 \u2013 Deleting users on CentOS<\/h3>\n\n\n\n<ul>\n<li>Open a terminal and log in to your CentOS system as the root user or a user with sudo privileges.<\/li>\n\n\n\n<li>To delete a user, use the&nbsp;<code>userdel<\/code>&nbsp;command followed by the username. For example, to delete the user &#8220;john,&#8221; type the following command:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo userdel john<\/code><\/pre>\n\n\n\n<ul>\n<li>By default, the user&#8217;s home directory and files will not be removed. If you want to delete the user&#8217;s home directory and files, use the&nbsp;<code>userdel<\/code>&nbsp;command with the&nbsp;<code>-r<\/code>&nbsp;option:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo userdel -r john<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"deleting-users-on-debian\">2 \u2013 Deleting users on Debian<\/h3>\n\n\n\n<ul>\n<li>Open a terminal and log in to your Debian system as the root user or a user with sudo privileges.<\/li>\n\n\n\n<li>To delete a user, use the&nbsp;<code>deluser<\/code>&nbsp;command followed by the username. For example, to delete the user &#8220;john,&#8221; type the following command:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo deluser john<\/code><\/pre>\n\n\n\n<ul>\n<li>By default, the user&#8217;s home directory and files will not be removed. If you want to delete the user&#8217;s home directory and files, use the&nbsp;<code>deluser<\/code>&nbsp;command with the&nbsp;<code>--remove-home<\/code>&nbsp;option:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo deluser --remove-home john<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p>Managing user accounts is crucial for maintaining a secure and well-organized system. In this article, we have provided you with a detailed guide on how to add and delete users on both CentOS and Debian. By following the step-by-step instructions, you can efficiently manage user accounts, assign proper access privileges, and ensure the security of your server. Remember to exercise caution when deleting users, as it can result in the loss of their associated files and data. Always have a backup and double-check your actions before proceeding.<\/p>\n\n\n\n<p>By understanding these user management procedures, you&#8217;ll be able to handle user accounts effectively, maintaining a secure and organized server environment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Managing user accounts is an essential task for system administrators, whether you&#8217;re using CentOS \/ RedHat or Ubuntu \/ Debian as your operating system. Adding and deleting users is a routine part of system administration and helps ensure the security and proper access control on your server. In this article, we will provide you ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[69,3],"tags":[],"yoast_head":"\n<title>How to Add and Delete Users on CentOS \/ Ubuntu: A Comprehensive Guide - WebHi Tutorials &amp; Documentations<\/title>\n<meta name=\"description\" content=\"Learn how to add and delete users on CentOS and Debian with this comprehensive guide. Managing user accounts is crucial for system administrators, and this guide provides step-by-step instructions for both operating systems.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add and Delete Users on CentOS \/ Ubuntu: A Comprehensive Guide - WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"og:description\" content=\"Learn how to add and delete users on CentOS and Debian with this comprehensive guide. Managing user accounts is crucial for system administrators, and this guide provides step-by-step instructions for both operating systems.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/\" \/>\n<meta property=\"og:site_name\" content=\"WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webhi.technology\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-15T00:26:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-15T00:26:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/users_management_en.jpg\" \/>\n<meta name=\"author\" content=\"webhi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:site\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webhi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/\"},\"author\":{\"name\":\"webhi\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\"},\"headline\":\"How to Add and Delete Users on CentOS \/ Ubuntu: A Comprehensive Guide\",\"datePublished\":\"2023-07-15T00:26:31+00:00\",\"dateModified\":\"2023-07-15T00:26:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/\"},\"wordCount\":965,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"articleSection\":[\"Linux system administration\",\"Security\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/\",\"name\":\"How to Add and Delete Users on CentOS \/ Ubuntu: A Comprehensive Guide - WebHi Tutorials &amp; Documentations\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\"},\"datePublished\":\"2023-07-15T00:26:31+00:00\",\"dateModified\":\"2023-07-15T00:26:34+00:00\",\"description\":\"Learn how to add and delete users on CentOS and Debian with this comprehensive guide. Managing user accounts is crucial for system administrators, and this guide provides step-by-step instructions for both operating systems.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webhi.com\/how-to\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Add and Delete Users on CentOS \/ Ubuntu: A Comprehensive Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"name\":\"WebHi Tutorials &amp; Documentations\",\"description\":\"System administration and knowledge base\",\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\",\"name\":\"WebHi Technology\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"width\":288,\"height\":95,\"caption\":\"WebHi Technology\"},\"image\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webhi.technology\",\"https:\/\/twitter.com\/WebHiTechnology\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\",\"name\":\"webhi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781214743\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781214743\",\"caption\":\"webhi\"},\"sameAs\":[\"https:\/\/www.webhi.com\/how-to\"],\"url\":\"https:\/\/www.webhi.com\/how-to\/author\/webhi\/\"}]}<\/script>\n","yoast_head_json":{"title":"How to Add and Delete Users on CentOS \/ Ubuntu: A Comprehensive Guide - WebHi Tutorials &amp; Documentations","description":"Learn how to add and delete users on CentOS and Debian with this comprehensive guide. Managing user accounts is crucial for system administrators, and this guide provides step-by-step instructions for both operating systems.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/","og_locale":"en_US","og_type":"article","og_title":"How to Add and Delete Users on CentOS \/ Ubuntu: A Comprehensive Guide - WebHi Tutorials &amp; Documentations","og_description":"Learn how to add and delete users on CentOS and Debian with this comprehensive guide. Managing user accounts is crucial for system administrators, and this guide provides step-by-step instructions for both operating systems.","og_url":"https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/","og_site_name":"WebHi Tutorials &amp; Documentations","article_publisher":"https:\/\/www.facebook.com\/webhi.technology","article_published_time":"2023-07-15T00:26:31+00:00","article_modified_time":"2023-07-15T00:26:34+00:00","og_image":[{"url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/users_management_en.jpg"}],"author":"webhi","twitter_card":"summary_large_image","twitter_creator":"@WebHiTechnology","twitter_site":"@WebHiTechnology","twitter_misc":{"Written by":"webhi","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/#article","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/"},"author":{"name":"webhi","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54"},"headline":"How to Add and Delete Users on CentOS \/ Ubuntu: A Comprehensive Guide","datePublished":"2023-07-15T00:26:31+00:00","dateModified":"2023-07-15T00:26:34+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/"},"wordCount":965,"commentCount":0,"publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"articleSection":["Linux system administration","Security"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/","url":"https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/","name":"How to Add and Delete Users on CentOS \/ Ubuntu: A Comprehensive Guide - WebHi Tutorials &amp; Documentations","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/#website"},"datePublished":"2023-07-15T00:26:31+00:00","dateModified":"2023-07-15T00:26:34+00:00","description":"Learn how to add and delete users on CentOS and Debian with this comprehensive guide. Managing user accounts is crucial for system administrators, and this guide provides step-by-step instructions for both operating systems.","breadcrumb":{"@id":"https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhi.com\/how-to\/how-to-add-and-delete-users-on-centos-ubuntu-debian-redhat\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhi.com\/how-to\/"},{"@type":"ListItem","position":2,"name":"How to Add and Delete Users on CentOS \/ Ubuntu: A Comprehensive Guide"}]},{"@type":"WebSite","@id":"https:\/\/www.webhi.com\/how-to\/#website","url":"https:\/\/www.webhi.com\/how-to\/","name":"WebHi Tutorials &amp; Documentations","description":"System administration and knowledge base","publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webhi.com\/how-to\/#organization","name":"WebHi Technology","url":"https:\/\/www.webhi.com\/how-to\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","contentUrl":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","width":288,"height":95,"caption":"WebHi Technology"},"image":{"@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webhi.technology","https:\/\/twitter.com\/WebHiTechnology"]},{"@type":"Person","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54","name":"webhi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/","url":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781214743","contentUrl":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781214743","caption":"webhi"},"sameAs":["https:\/\/www.webhi.com\/how-to"],"url":"https:\/\/www.webhi.com\/how-to\/author\/webhi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/5954"}],"collection":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/comments?post=5954"}],"version-history":[{"count":8,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/5954\/revisions"}],"predecessor-version":[{"id":6006,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/5954\/revisions\/6006"}],"wp:attachment":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/media?parent=5954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/categories?post=5954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/tags?post=5954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}