Results 1 to 12 of 12

Thread: Second Root User

  1. #1
    Member
    Join Date
    Jan 2012
    Posts
    14
    cPanel/WHM Access Level

    Root Administrator

    Question Second Root User

    Hello,
    I want to create a second root user for WHM, the only difference between root and second root user is second root unable to change root's password.
    This is my shell command:
    Code:
    useradd -u 0  -o  -g root  -G root -d /home/root2 root2
    root@localhost [~]# id root2
    uid=0(root) gid=0(root) groups=0(root)
    But when I use this account to login to WHM, it says 'Invalid login', I want to know why and how to fix that?

  2. #2
    Member
    Join Date
    Jan 2012
    Posts
    14
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Second Root User

    Anyone could help me to solve?

  3. #3
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Second Root User

    If you want a second WHM root like user, you'll have to use one created in WHM itself in WHM > Create a New Account area, then give the user all privileges in Resellers > Reseller Center > Edit Privileges/Nameservers area under "Root Access" where it has All Features (warning: total and complete access).
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  4. #4
    Member
    Join Date
    Jan 2012
    Posts
    14
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Second Root User

    Quote Originally Posted by cPanelTristan View Post
    If you want a second WHM root like user, you'll have to use one created in WHM itself in WHM > Create a New Account area, then give the user all privileges in Resellers > Reseller Center > Edit Privileges/Nameservers area under "Root Access" where it has All Features (warning: total and complete access).
    I created a account and give it root access, but I found that it can change root password. Is there anyway to disable it?

  5. #5
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Second Root User

    The WHM created user with root like privileges has access to change the root password? I didn't know that was the case.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  6. #6
    Member
    Join Date
    Jan 2012
    Posts
    14
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Second Root User

    Quote Originally Posted by cPanelTristan View Post
    The WHM created user with root like privileges has access to change the root password? I didn't know that was the case.
    Actually I can see Change Root Password function in WHM created user, please see:
    /http://imgur.com/DayOk

  7. #7
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Second Root User

    I see. I know of no way to remove that capability then, since you are providing full WHM root like access to that user from that option in the Reseller section.

    Can you explain why you need a full privilege user of this nature rather than one with select jailed abilities?
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  8. #8
    Member
    Join Date
    Jan 2012
    Posts
    14
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Second Root User

    Quote Originally Posted by cPanelTristan View Post
    I see. I know of no way to remove that capability then, since you are providing full WHM root like access to that user from that option in the Reseller section.

    Can you explain why you need a full privilege user of this nature rather than one with select jailed abilities?
    I want to assign this account to my technical supporter so they must get full access expect change root password.

  9. #9
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Second Root User

    Do you have physical access to the machine in the event that happened? If so, then why are you going to all this trouble? If they changed the password on you, then you have a lot more to worry about then the password being changed since they already have full access. It's easy to change the password back if you have console on the machine to do that, but the very fact if they did change it would mean they are probably doing something far worse, which they can do because of having full access already.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  10. #10
    Member
    Join Date
    Jan 2012
    Posts
    14
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Second Root User

    Quote Originally Posted by cPanelTristan View Post
    Do you have physical access to the machine in the event that happened? If so, then why are you going to all this trouble? If they changed the password on you, then you have a lot more to worry about then the password being changed since they already have full access. It's easy to change the password back if you have console on the machine to do that, but the very fact if they did change it would mean they are probably doing something far worse, which they can do because of having full access already.
    Thanks for your reply.
    This is a VPS server, I am only have access to that via KVM.

  11. #11
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Second Root User

    I'm unaware of a method to make this possible to provide WHM access to a user who has full root privileges without providing all of the WHM options. Since changing the root password is there, then you are right, it allows that to happen unfortunately.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  12. #12
    Member
    Join Date
    Jan 2012
    Posts
    14
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Second Root User

    Quote Originally Posted by cPanelTristan View Post
    I'm unaware of a method to make this possible to provide WHM access to a user who has full root privileges without providing all of the WHM options. Since changing the root password is there, then you are right, it allows that to happen unfortunately.
    Is there anyway to disable Change Root Password function for cPanel? Even I can delete that page...
    If I need change root password, I can go with SSH and do not need cPanel to help me.

Similar Threads

  1. additional root user and user id 0
    By upsforum in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 05-24-2012, 05:43 AM
  2. user become root
    By solaris in forum cPanel & WHM Discussions
    Replies: 8
    Last Post: 02-11-2008, 10:24 AM
  3. Replies: 1
    Last Post: 11-25-2007, 02:35 PM
  4. Does the user for cpanel is the root user for mysql?
    By hungboy in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 03-30-2006, 10:55 AM
  5. User Name: root
    By splat in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 01-27-2004, 11:32 PM