{"id":412,"date":"2011-02-02T04:45:34","date_gmt":"2011-02-02T10:45:34","guid":{"rendered":"http:\/\/blog.supportpro.com\/2011\/02\/how-to-retrieve-ftp-username-and-password-in-plaintext-from-psa-db\/"},"modified":"2018-10-04T06:19:51","modified_gmt":"2018-10-04T12:19:51","slug":"how-to-retrieve-ftp-username-and-password-in-plaintext-from-psa-db","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/how-to-retrieve-ftp-username-and-password-in-plaintext-from-psa-db\/","title":{"rendered":"HOW TO RETRIEVE FTP USERNAME AND PASSWORD IN PLAINTEXT FROM PSA DB"},"content":{"rendered":"<p>We can easily retrieve all the FTP usernames and password under a domain in plain text, by following the below steps.<\/p>\n<p>1. Enter the MySQL Prompt.<\/p>\n<p># mysql -u admin -p`cat \/etc\/psa\/.psa.shadow`<\/p>\n<p>2. use psa;<\/p>\n<p>3. mysql&gt; select US.* FROM sys_users US, hosting HS, domains DM<\/p>\n<p>-&gt; WHERE US.id = HS.sys_user_id AND HS.dom_id = DM.id AND DM.name =&#8217;domain.com&#8217;;<\/p>\n<p>The below given is a sample output of that command.<\/p>\n<p>+&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+<\/p>\n<p>| id | login | passwd | home | shell | quota |<\/p>\n<p>+&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+<\/p>\n<p>| 110 | ftpuser | password | \/home\/httpd\/vhosts\/domain.com | \/bin\/false | 0 |<\/p>\n<p>+&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+<\/p>\n<p>If you require help,<a href=\"https:\/\/www.supportpro.com\/requestquote.php\"> contact SupportPRO Server Admin<\/a><\/p>\n<p style=\"text-align: center;\"><!--HubSpot Call-to-Action Code --><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><!-- [if lte IE 8]><\/p>\n\n\n\n\n\n<div id=\"hs-cta-ie-element\"><\/div>\n\n\n<![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b\"><img decoding=\"async\" id=\"hs-cta-img-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-img\" style=\"border-width: 0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b.png\" alt=\"Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value\" \/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '9d590242-d641-4383-94b4-8cfd62f0af6b', {}); <\/script><\/span><!-- end HubSpot Call-to-Action Code --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We can easily retrieve all the FTP usernames and password under a domain in plain text, by following the below steps. 1. Enter the MySQL Prompt. # mysql -u admin&hellip;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-412","post","type-post","status-publish","format-standard","hentry","category-miscellaneous"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=412"}],"version-history":[{"count":1,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/412\/revisions"}],"predecessor-version":[{"id":3348,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/412\/revisions\/3348"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}