Reset Plesk Admin Password By Linux Command
-
Upload
haroon-sajjad -
Category
Documents
-
view
3.554 -
download
0
description
Transcript of Reset Plesk Admin Password By Linux Command
Reset Plesk Admin Password
Linux
This can be accomplished with the ch_admin_passwd binary.
[root@plesklinux root]# cd /usr/local/psa/admin/bin/
[root@plesklinux bin]# ./ch_admin_passwd —help
./ch_admin_passwd: Utility to set Plesk adminstrator’s 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
Usage: ./ch_admin_passwd -h, —help display this help and exit
We must export the variable before running the binary. We will unset the variable when we are done.
[root@plesklinux bin]# export PSA_PASSWORD=’newpass’
[root@plesklinux bin]# echo $PSA_PASSWORD
newpass
[root@plesklinux bin]# ./ch_admin_passwd
[root@plesklinux bin]# export PSA_PASSWORD=
[root@plesklinux bin]# cat /etc/psa/.psa.shadow
newpass
[root@plesklinux bin]#
Windows
You can fetch and reset the Plesk admin login using the plesksrvclient binary located in the %plesk_bin% directory:
Get the Existing Password:
plesksrvclient.exe -get
Set a New Password:
plesksrvclient.exe <NEWPASS>
Anything put as an argument (after the command) to plesksrvclient.exe gets set as the password, so don't use /? unless you want "/?" as your admin password. Also, running it with no argument will open a window requesting the new password as input.
Reset lockout timer - Linux
a) Wait for 30-45 minutes and your admin account will be automatically reset.
b) If you can not wait for 30 minutes simply login over ssh and type the following command to reset plesk admin
# mysql -u admin -p psa
You need to provide current admin password. At mysql prompt type the command:
mysql> delete from lockout where login = 'admin';
Reset lockout timer - Windows
a) Connect using terminal server or VNC
b) Click on Start > Run and type the command cmd > Press [Enter] key
c) At a command prompt type the command:
C:>\Program Files\SWsoft\Plesk\MySQL\bin\mysql.exe -u admin –p PASSWORD -P8306 -D psa -e "DELETE FROM lockout"