Blog

Schimbare multiple parole simultan Plesk

By C January 28, 2016

Salut,

In cele ce urmeaza voi prezenta un script cu ajutorul caruia aveti posibilitatea de a schimba simultan parolele de acces pentru tot ceea ce inseamna useri sau conturi FTP pe un server sau VPS care ruleaza sub panou de control Plesk .

  1. Se downlodeaza scriptul :
    • wget http://kb.sp.parallels.com/Attachments/kcs-498/plesk_password_changer.zip
  2. Se dezarhiveaza
    • unzip plesk_password_changer.zip
  3. Se comenteaza in php.ini urmatoarea linie (daca exista ceva notat dupa disable_functions = )
  • # disable_functions = 'apache_child_terminate, apache_setenv, define_syslog_variables, escapeshellarg, escapeshellcmd, eval, exec, ... , mysql_pconnect'
  1. Schimbare parole de acces panou de control Plesk pentru unul sau mai multe domenii in functie de optiunile alese din lista de mai jos :
  • # /usr/local/psa/bin/sw-engine-pleskrun plesk_password_changer.php `cat /etc/psa/.psa.shadow` ['new admin password'] [options]
  • Variabila [options] poate fi :
--all - [default] reset passwords for all supported entities

--admin - reset the password for admin

--additionaladmins - reset passwords for additional administrator accounts

--clean-up-sessions - clean up the sessions table in the Plesk database

--resellers - reset passwords for resellers

--clients - reset passwords for clients

--domains - reset passwords for the main FTP account of domains

--domainadmins - reset passwords for Domain Administrators

--users - change passwords for hosting panel users

--additionalftpaccounts - reset passwords for additional FTP accounts for domains

--subdomains - reset passwords for subdomains. NOTE: For Plesk 10.x, subdomains are treated as domains.

--dbusers - change passwords for database users

--webusers - reset passwords for Web Users

--mailaccounts - reset passwords for mail accounts

--pdusers - change passwords for protected directories users

--apsc - change the password for the apsc database

--mailaccounts - reset passwords for mail accounts (note that in Plesk 10.x and higher, passwords will be NOT changed for mail accounts which are created during user creation (and linked with this user). Passwords for these mail accounts should be reset using the option --users)

5. Exemple :

  • Reseteaza toate parolele din Plesk si genereaza o parola de admin atutomat :
#php -d open_basedir= -d safe_mode=0 plesk_password_changer.php `cat /etc/psa/.psa.shadow`
  • Reseteaza parolele pentru toate domeniile FTP principale (nu si cele create pentru subdomenii) :
#php -d open_basedir= -d safe_mode=0 plesk_password_changer.php `cat /etc/psa/.psa.shadow` --domains
  • Reseteaza paroele pentru Admin si clenti si seteaza ca si parola de admin cUbuN3$|r3le :
#php -d open_basedir= -d safe_mode=0 plesk_password_changer.php `cat /etc/psa/.psa.shadow` 'cUbuN3$|r3le' --admin --clients
  • Reseteaza toate parolele din Plesk si genereaza o parola de admin cUbuN3$|r3le :
#php -d open_basedir= -d safe_mode=0 plesk_password_changer.php `cat /etc/psa/.psa.shadow` 'cUbuN3$|r3le'

! IMPORTANT – Parola Plesk va fi setata random daca, campul <new admin password> nu este completat cu parola pe care o doriti.

C. 

Facebooktwitterredditpinterestlinkedinmail

Tags: , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

You're not a robot ! *