Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

Discussion in 'General Discussion' started by dwh2, Jul 6, 2007.

  1. dwh2

    dwh2 Well-Known Member

    Joined:
    Jan 14, 2004
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    166
    I can SSH in..and usually my cookie remembers it, but the cookie forgot the password and so have I...
     
  2. dwh2

    dwh2 Well-Known Member

    Joined:
    Jan 14, 2004
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    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...
     
  3. dwh2

    dwh2 Well-Known Member

    Joined:
    Jan 14, 2004
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    166
    Never mind. Got it ;)
    tx.
     
  4. Kailash1

    Kailash1 Well-Known Member

    Joined:
    Nov 27, 2006
    Messages:
    253
    Likes Received:
    2
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Twitter:
    How can we reset the root password in case if we forget it?

    Thanks,

    Kailash
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. bking

    bking Well-Known Member

    Joined:
    Mar 1, 2004
    Messages:
    206
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Sydney
    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.
     
  6. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    870
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    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.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice