CompufixHosting

Active Member
Nov 28, 2005
30
0
156
Hello.

I was wondering if there is a way I can change my username from root to something else. I already have it to where I can only ssh into the server with my ip but I would also like to change the root username due to security purposes.


Thanks
 

NT

Well-Known Member
May 4, 2004
137
0
166
England, UK
Hi,

I don't believe this is possible, but you can prevent users from logging in as the root user remotely, and setup wheel users who are able to switch to the root account.

Hope that helps :)
 

CompufixHosting

Active Member
Nov 28, 2005
30
0
156
Well is there a way I can make a new account with FULL root access and disable root? And is this what most people do?

Thanks.
 

NT

Well-Known Member
May 4, 2004
137
0
166
England, UK
Hi,

Not sure - some people use 'sudo' which allows root commands through a non-root user. This also keeps a log of what commands were used and by which user.

Why exactly do you want this capability? If you explain your reasoning then we may be able to help you find a solution :)

Nick
 

CompufixHosting

Active Member
Nov 28, 2005
30
0
156
Well from what I have seen, most people disable the root account and they use another account as root. Or either during install they might use a different username other than root for the root account. And i've had people trying to login to my server with the root account.
 

NT

Well-Known Member
May 4, 2004
137
0
166
England, UK
Hi,

That's easily fixed by adding another user to the wheel group, which can be done via WHM - "Manage Wheel Group Users" :)

What you'd then do is disable root login through /etc/ssh/sshd_config, add the user through WHM, login as that user in SSH and 'su' to root in order to execute root commands.
 

Murtaza_t

Well-Known Member
Jan 24, 2005
474
0
166
Earth
cPanel Access Level
Website Owner
CompufixHosting said:
Well is there a way I can make a new account with FULL root access and disable root? And is this what most people do?

Thanks.
cPanel will not allow you to do this.. and you will keep on getting notification saying that there is threat on your server..

Do as NT said, disable root and create a wheel user. You can also searh this forums and you will find plenty of help was on securing your server.