{"id":4413,"date":"2018-06-02T00:44:26","date_gmt":"2018-06-02T00:44:26","guid":{"rendered":"https:\/\/geekdecoder.com\/?p=4413"},"modified":"2018-06-02T00:44:26","modified_gmt":"2018-06-02T00:44:26","slug":"find-plesk-users-and-remove-them","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2018\/06\/02\/find-plesk-users-and-remove-them\/","title":{"rendered":"Find Plesk users and Remove them"},"content":{"rendered":"<p>Plesk uses system users to handle logins. As such removing the user effectively removes their access to the entire server.<br \/>\nIf you want to delete the user without deleting any of their files, type this command as root:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n#userdel username\n<\/pre>\n<p>If you want to delete the user&#8217;s home directory along with the user account itself, type this command as root:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# userdel -r username\n<\/pre>\n<p>Check for user<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# grep username \/etc\/passwd\n#\n\n<\/pre>\n<p>Just to be sure check the logins for Plesk on the server and the list of users is below.<\/p>\n<p>[\/bash]<\/p>\n<p># plesk db &#8220;select login from domains inner join sys_users on domains.id = sys_users.id&#8221;<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8211;+<br \/>\n| login |<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8211;+<br \/>\n| artist |<br \/>\n| test |<br \/>\n| user1|<br \/>\n| testuser1|<br \/>\n| rod|<br \/>\n| james|<br \/>\n| lisa|<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8211;+<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Plesk uses system users to handle logins. As such removing the user effectively removes their access to the entire server. If you want to delete the user without deleting any of their files, type this command as root: #userdel username If you want to delete the user&#8217;s home directory along with the user account itself, &#8230; <a title=\"Find Plesk users and Remove them\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2018\/06\/02\/find-plesk-users-and-remove-them\/\" aria-label=\"Read more about Find Plesk users and Remove them\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86],"tags":[],"class_list":["post-4413","post","type-post","status-publish","format-standard","hentry","category-plesk"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/4413","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=4413"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/4413\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=4413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=4413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=4413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}