Recover an FTP password from Plesk database

2

Posted in Server, Snippets | June 8, 2012

This script can help you to recover an ftp password form Plesk, instead of reset it.

You have only to change xxx with the user of ftp account.

mysql -u admin -p`cat /etc/psa/.psa.shadow` -e "use psa; select accounts.password from accounts INNER JOIN sys_users ON accounts.id=sys_users.account_id WHERE sys_users.login='xxxx';"