Blog

Afisare lista conturi FTP Plesk

By C January 28, 2016

Salut,

Mai jos regasiti modalitatea de afisare a tuturor userilor si a parolelor aferente conturilor FTP care ruleaza pe un server cu panou de control Parallel Plesk :

# mysql -uadmin -p`cat /etc/psa/.psa.shadow` - conectare server mysql
# use psa; - se selecteaza baza de date psa
# 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;
#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;

Mie mi-a fost foarte folositoare aceasta procedura in momentul in care a trebuit sa schimb aproximativ 40 de parole FTP simultan. In postul care urmeaza voi prezenta pasii care trebuie urmati pentru schimbarea parolelor simultan la multiple conturi.

 

C.

 

Facebooktwittergoogle_plusredditpinterestlinkedinmail

Leave a Reply

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

You're not a robot ! *