{"id":458,"date":"2019-09-05T14:55:18","date_gmt":"2019-09-05T21:55:18","guid":{"rendered":"https:\/\/blog.iabsolute.com\/?p=458"},"modified":"2019-09-05T14:55:18","modified_gmt":"2019-09-05T21:55:18","slug":"remove-a-linux-user","status":"publish","type":"post","link":"https:\/\/blog.iabsolute.com\/?p=458","title":{"rendered":"Remove a Linux user"},"content":{"rendered":"\n<p>You can remove old users from your Linux server. This will revoke the user&#8217;s SSH access, and remove that user&#8217;s file and directory owner<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Remove the user<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>Log in to your server via SSH.<\/li><li>Switch to the root user: <br><strong><em> sudo su &#8211;<\/em><\/strong><\/li><li>Use the <em>userdel<\/em> command to remove the old user: <br> <strong>userdel <\/strong><em><strong>user&#8217;s username<\/strong><\/em><\/li><li><em>Optional:<\/em> You can also delete that user&#8217;s home directory and mail spool by using the <strong>-r<\/strong> flag with the command: <br> <strong>userdel -r <\/strong><em><strong>user&#8217;s username<\/strong><\/em> <\/li><\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can remove old users from your Linux server. This will revoke the user&#8217;s SSH access, and remove that user&#8217;s file and directory owner Remove the user Log in to your server via SSH. Switch to the root user: sudo &hellip; <a href=\"https:\/\/blog.iabsolute.com\/?p=458\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,2],"tags":[],"class_list":["post-458","post","type-post","status-publish","format-standard","hentry","category-command-line-my-linux","category-my-linux"],"_links":{"self":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=458"}],"version-history":[{"count":1,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/458\/revisions"}],"predecessor-version":[{"id":459,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/458\/revisions\/459"}],"wp:attachment":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}