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.

SSH Users

Discussion in 'General Discussion' started by B12Org, Aug 25, 2003.

  1. B12Org

    B12Org Well-Known Member

    Joined:
    Jul 15, 2003
    Messages:
    692
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle Washington
    cPanel Access Level:
    Root Administrator
    How do I create a user that can ssh and su? When you create a user by default, it gives you the option of allowing them shell access, but when you try to su to root or something you get the access denied. How can I fix that? I need a backup or backdoor account for my server just in case.

    cPanel.net Support Ticket Number:
     
  2. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    adduser USERNAME
    usermod -G wheel USERNAME

    cPanel.net Support Ticket Number:
     
  3. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    Keep in mind that having the ability to su means that you need to know the root password. If your machine is compromised, you probably won't be able to su as either the binary will be changed or root password altered. Even though it is not recommended, you may want to create an additional user with root privileges, so you can avoid having to su.

    cPanel.net Support Ticket Number:
     
  4. B12Org

    B12Org Well-Known Member

    Joined:
    Jul 15, 2003
    Messages:
    692
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle Washington
    cPanel Access Level:
    Root Administrator
    How do I do that? (command line)

    cPanel.net Support Ticket Number:
     
  5. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    Do what?

    cPanel.net Support Ticket Number:
     
  6. B12Org

    B12Org Well-Known Member

    Joined:
    Jul 15, 2003
    Messages:
    692
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle Washington
    cPanel Access Level:
    Root Administrator
    Create a root priveleged user from the command line. I can do it in whm, but some one can easily compromise whm, and change that, so I make one in command line, it will also not be listed in whm, so then they can not change it.

    cPanel.net Support Ticket Number:
     
  7. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    adduser USERNAME
    vi /etc/passwd

    find the new user you created (should be at the bottom of the file if you just created the user) and change the UID & GID to 0.

    Save & close. Log back in with that user and you have root privs.

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page