The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Missing root keys

Discussion in 'Security' started by avstudio, Jan 26, 2013.

  1. avstudio

    avstudio Registered

    Joined:
    Jan 26, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi guys,

    I'm new one in WHM, and by my mistake I not able anymore to manage root keys.

    Here my steps:

    By mistake I typed this command:
    usermod -d some_dir root
    After that, I wasn't able to log any more as the root user via ssh.
    After I add another user in wheel group, I loged in and via su root , I corrected that mistake by typing the command:
    usermod -d root root
    Now everything works fine and I can login via SSH. What I can't do is managing root keys from WHM. Although my keys are inside /root/.ssh dir, I can't see them inside WHM. I also tried to generate new one, and they are generated inside / instead /root/.ssh (I guess).

    So how to fix this problem and regain functionality relate to managing root keys from WHM?

    Thanks a lot.
    Regards,
    Aleksandar
     
    #1 avstudio, Jan 26, 2013
    Last edited: Jan 26, 2013
  2. avstudio

    avstudio Registered

    Joined:
    Jan 26, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Ok...I solved. Just enter command usermod -d /root root instead usermod -d root root. I hope I will help someone with this...
     
  3. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Thank you for sharing the solution for the benefit of the community.
     
Loading...

Share This Page