Plesk Mass Password Reset Scripts
The Mass Password Reset Script is designed to allow Plesk owners to reset the passwords of all accounts automatically.
1. Download the script from Plesk website:
Plesk 11: https://support.plesk.com/hc/article_attachments/115001109265/plesk_password_changer.zip
Plesk 12 and 12.5: https://support.plesk.com/hc/article_attachments/115001107289/plesk_password_changer_for_12.zip
Plesk Onyx: https://support.plesk.com/hc/article_attachments/115001107309/plesk_password_changer_onyx.zip
2. Unzip the script using this command
unzip file.zip -d destination_dir
or
unzip file.zip
3. Run the unzipped script as follows:
/usr/local/psa/bin/sw-engine-pleskrun plesk_password_changer.php `cat /etc/psa/.psa.shadow` ['new admin password'] [options]
Examples:
1. Reset all passwords for all Plesk entities and generate a password for admin automatically:
php -d open_basedir= -d safe_mode=0 plesk_password_changer.php `cat /etc/psa/.psa.shadow`
2. Reset passwords for the main FTP account of a domain only:
php -d open_basedir= -d safe_mode=0 plesk_password_changer.php `cat /etc/psa/.psa.shadow` --domains
3. Reset passwords for admin and client accounts and set the admin password to 'new_password':
php -d open_basedir= -d safe_mode=0 plesk_password_changer.php `cat /etc/psa/.psa.shadow` 'new_password' --admin --clients
4. Reset all passwords for all Plesk entities and set the admin password to 'new_password':
php -d open_basedir= -d safe_mode=0 plesk_password_changer.php `cat /etc/psa/.psa.shadow` 'new_password'