{"id":7815,"date":"2019-01-11T13:45:54","date_gmt":"2019-01-11T13:45:54","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=7815"},"modified":"2019-01-12T08:58:03","modified_gmt":"2019-01-12T08:58:03","slug":"centos-delete-users-linux-hint","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/01\/11\/centos-delete-users-linux-hint\/","title":{"rendered":"CentOS Delete Users \u2013 Linux Hint"},"content":{"rendered":"<p>Linux is, by default, designed in such a manner that it allows more than one user in a single system in a very secure manner. That\u2019s why user accounts are important for keeping users organized and ensure privacy and security for everyone. For the professional\/enterprise workspace, this is even more important. The system admin has to keep everything under control with proper user account management. Otherwise, there would be clashes and privacy\/security issues that nobody wants to deal with.<\/p>\n<p>CentOS is a great example of the professional workspace. It offers easy access to all the features of the RHEL (Red Hat Enterprise Linux). It\u2019s possible to perform almost any action with the user accounts, for example, adding\/deleting a user account(s), managing the permissions and others etc.<\/p>\n<p>In today\u2019s tutorial, we\u2019ll start by deleting a demo user on CentOS.<\/p>\n<p>At first, I\u2019ll be creating a new user for deletion. This is not necessary to perform in the real life. Instead, you have to focus on the user\u2019s data and permissions before deleting the account.<\/p>\n<p>Let\u2019s add a new user into the system. For this purpose, we need the root privilege.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/1-21.png\" alt=\"\" width=\"874\" height=\"119\" \/><\/p>\n<p>Now, it\u2019s time to create a new user!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/2-20.png\" alt=\"\" width=\"873\" height=\"85\" \/><\/p>\n<p>Don\u2019t forget to add a password for the newly created account!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/3-20.png\" alt=\"\" width=\"877\" height=\"177\" \/><\/p>\n<p>Now, it\u2019s time to delete the user! At first, make sure that the user is out of any group in your system \u2013<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/4-21.png\" alt=\"\" width=\"879\" height=\"129\" \/><\/p>\n<p><em>Note \u2013 Depending on the situation in the real world, the following command should be used very carefully. This command will delete the user\u2019s all files.<\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/5-20.png\" alt=\"\" width=\"880\" height=\"111\" \/><\/p>\n<p>Make sure that you also remove the user from the privilege list. Run the following command \u2013<\/p>\n<p>Find out the following line \u2013<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/6-19.png\" alt=\"\" width=\"889\" height=\"261\" \/><\/p>\n<p>Remove the entry of the user \u2013<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2019\/01\/7-20.png\" alt=\"\" width=\"910\" height=\"162\" \/><\/p>\n<p>Voila! The user account is completely gone from your system!<\/p>\n<p><a href=\"https:\/\/linuxhint.com\/centos_delete_users\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux is, by default, designed in such a manner that it allows more than one user in a single system in a very secure manner. That\u2019s why user accounts are important for keeping users organized and ensure privacy and security for everyone. For the professional\/enterprise workspace, this is even more important. The system admin has &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/01\/11\/centos-delete-users-linux-hint\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;CentOS Delete Users \u2013 Linux Hint&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7815","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/7815","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=7815"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/7815\/revisions"}],"predecessor-version":[{"id":7948,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/7815\/revisions\/7948"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=7815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=7815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=7815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}