Su to root denied but can't add to wheel group either!

Stefaandk

Registered
Jul 28, 2016
1
0
1
Melbourne
cPanel Access Level
Root Administrator
I rebuilt one of my servers from scratch using Centos 7.x

I typically disable root login in sshd_config, login as a different user then su to root, I now get permission denied, Ok used to that as well so I then add root to the wheel group to fix it.

However now I"m getting:

You cannot alter the root account!

I can't recall ever having that problem and looking through troubleshooting the not able to su to root issue that is very much the suggested fix, it's also what I have set on my other cPanel servers, root is in the wheel group!! I'm possibly overlooking something blatantly obvious here but I'm starting to waste too much time on this so some feedback is appreciated.

Thank you.
 

SysSachin

Well-Known Member
Aug 23, 2015
604
48
28
India
cPanel Access Level
Root Administrator
Twitter
Hello,
Have you created another user to access server ?

If you have disabled the root login then you need to add another user in wheel group and access server using that wheel user.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,243
463