I lost my WHM password (root)..how do I retrieve it?

dwh2

Well-Known Member
Jan 14, 2004
106
0
166
I can SSH in..and usually my cookie remembers it, but the cookie forgot the password and so have I...
 

dwh2

Well-Known Member
Jan 14, 2004
106
0
166
Or is the WHM root password the same as root password on the system?
Because I know that...and it works for SSH...but not for WHM...
 

bking

Well-Known Member
Mar 1, 2004
206
1
168
Sydney
How can we reset the root password in case if we forget it?

Thanks,

Kailash
Log in as a user that has full sudo access...

# sudo su -
# passwd

Otherwise, boot into single user mode and change the password...

OR

another option, use a recovery CD/Disk. Boot using this. Mount the filesystem that /etc resides. Edit the /etc/shadow file with a generated passwd from an alternate machine. umount the filesystem, reboot and voila you should have root with a new password.
 

verdon

Well-Known Member
Nov 1, 2003
923
11
168
Northern Ontario, Canada
cPanel Access Level
Root Administrator
In many cases, when you don't have a user with su ability, and you're no where near the physical machine, you're going to have to get the data centre to do this for you. In the end, it's a pretty important word to forget and it's not supposed to be trivial to reset.