Total Pageviews

Saturday 31 December 2011

Reset Plesk Admin Password from Shell

./ch_admin_passwd is Plesk’s utility to set the admin password.
Gets password from the environment variable PSA_PASSWORD
Password should be from 5 to 16 symbols and should not contain login name, whitespace, quotes or national characters”
[root@ServerMonkey bin]# export PSA_PASSWORD=’newpass’
[root@ServerMonkey bin]# echo $PSA_PASSWORD
newpass
[root@ServerMonkey bin]# ./ch_admin_passwd
[root@ServerMonkey bin]# export PSA_PASSWORD=
[root@ServerMonkey bin]# cat /etc/psa/.psa.shadow
newpass
[root@ServerMonkey bin]#

No comments:

Post a Comment