help with disable root and create admin with wheel permission


Well-Known Member
Nov 10, 2006

I have a rather simple question. I wnat to disable the root login from SSH. My other servers are configured where I have to login using admin than I su to root. But now that I have a new server I need to figure this out for myself. So the part I dont' know is how do I create a user in Linux such as "admin".

I know the parts where I edit the ssh_config and change the PermitRootLogin to No. Than goto WHM and configure Wheel permissions. But my question still lies in how do I create this user first?


Well-Known Member
Dec 14, 2005
Planet Earth
You will need to login to SSH as a root user to create the wheel user. Following steps should be performed:

-Login to server via SSH using root login
-Run adduser admin (Will create a new user admin)
-Run passwd admin (Will ask to specify the password for admin user)
-Add admin user to wheel group wither from WHM or by editing /etc/group file using vigr. You can also specify the group with adduser command.
-Edit /etc/ssh/sshd_config, uncomment PermitRootLogin and set it to Yes.
-Restart the SSH service as /etc/init.d/ssh restart

NOTE: Leave one SSH terminal connected so that in case anything goes wrong you still have a terminal connected as a root login.


Well-Known Member
Jan 25, 2003
New York
-Edit /etc/ssh/sshd_config, uncomment PermitRootLogin and set it to Yes.
Dont you mean set it to "NO"

He said he wants to disable root login, not make the system more open.

If you set it to yes you are doing the exact opposite and making your machine more vulnerable.