wep

Registered
Jan 26, 2008
1
0
51
Hello, is it possible to add more then one "root" user account to be used in WHM functions? Basiclly I want to create an account with all the same permissions as "root".
 

xrserver

Well-Known Member
Jan 18, 2008
47
0
56
Yea I posted about this too. The steps i took to make another root user is.
useradd -o -u 0 usernamehere
passwd usernamehere
passwordhere

Below is a copy of my post

"It worked perfectly for a day or so then I get a email from my cpanel warning me about the added root account and after that I can't log in anymore with it... It keeps deleting it. What is causing that and how do I fix it?"
 

rainboy

Active Member
Mar 2, 2004
34
3
158
Eindhoven
IN WHM:

Add USER to the wheel users group.
Add USER to be a reseller with ALL privileges in WHM.

IN SHELL:
Add USER to the sudoers file. (/etc/sudoers)
CHANGE USER from jail-shell to full shell. (/etc/passwd)

This makes sure the User has all rights in WHM and is allowed to change everything through the WHM interface. When using SSH to access they have to use SUDO to switch to root. (I like it this way as i can limit the commands if needed, and keep better track of who did login at what time).

Maybe there are better/easier ways, but this works and does where i need it for, maybe it may help you as well.
 
Last edited:

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
Hello, is it possible to add more then one "root" user account to be used in WHM functions? Basiclly I want to create an account with all the same permissions as "root".
If this account only needs root-level privileges for the WHM interface (and not as an actual unix user), create a user account. Then go to the Reseller Center to give them Reseller Privileges, but be sure to check the box labeled All Features (warning: total and complete access).
 

xrserver

Well-Known Member
Jan 18, 2008
47
0
56
No I need it to have full access to the box with shell. Can you tell me what is stopping the useradd command? Does whm stop me from having 2 users with UID 0? Is there another way to make a root user that will work?
 

Maximum

Member
Feb 14, 2007
20
0
151
If this account only needs root-level privileges for the WHM interface (and not as an actual unix user), create a user account. Then go to the Reseller Center to give them Reseller Privileges, but be sure to check the box labeled All Features (warning: total and complete access).

Can I Prevent this account to change root password ???


Thank you :)
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
Can I Prevent this account to change root password ???


Thank you :)
An account set up in this manner via WHM will not have the root password nor would it have sufficient privileges to the server to change the root password. The account only has root level access to WHM, not the entirety of the underlying Linux/FreeBSD server.
 

Maximum

Member
Feb 14, 2007
20
0
151
An account set up in this manner via WHM will not have the root password nor would it have sufficient privileges to the server to change the root password. The account only has root level access to WHM, not the entirety of the underlying Linux/FreeBSD server.


But I tried to do this and I can change root password from WHM ...

Thanks for you
 

rainboy

Active Member
Mar 2, 2004
34
3
158
Eindhoven
It is of course possible you do not have sudo installed on your server.
Or that the location for the configuration file is different on the linux distribution you used. Path given is the default location when sudo is installed.
 
Last edited:

Maximum

Member
Feb 14, 2007
20
0
151
Hello cPanelDavidG .


you can view attachment this it screen shoot from my WHM ( reseller access ) after I give him all access I can login with his account and go to >> Change Root Password << and change root password . :eek: :eek:
 

Attachments

Maximum

Member
Feb 14, 2007
20
0
151
Hello cPanelDavidG .


you can view attachment this it screen shoot from my WHM ( reseller access ) after I give him all access I can login with his account and go to >> Change Root Password << and change root password . :eek: :eek:
Do you think it's normal ?? :confused: :confused: