Ottenere le password degli FTP user di Plesk
Per poter visualizzare rapidamente l’elenco di tutti gli utenti FTP e rispettive password in chiaro e’ possibile accedere al database mysql di Plesk da riga di comando:
mysql -u admin -p`cat /etc/psa/.psa_shadow`
Dopodiché si dice a mysql di voler consultare il db “psa”:
mysql> use psa
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -ADatabase changed
e questo punto possiamo lanciare la query che ci fornirà l’elenco:
SELECT REPLACE(sys_users.home,'/home/httpd/vhosts/','') AS domain, sys_users.login,accounts.password FROM sys_users LEFT JOIN accounts on sys_users.account_id=accounts.id ORDER BY sys_users.home ASC;
In questo modo possiamo vedere anche l cartella di destinazione del singolo account FTP.


