How to find out PLESK admin password?

Source: GraFX 12 July 2009

Sometimes you forgot the admin password for PLESK, so here is a small code to find out the password.

Login into SSH and type:

cat /etc/psa/.psa.shadow

Also if you want to login in MySQL use the same trick, a little bit extended.

mysql -u admin -p`cat /etc/psa/.psa.shadow`
mysql> use psa;