Can not switch user on cpanel server

yasir.iqbal12

Member
Jan 1, 2012
18
0
51
cPanel Access Level
Root Administrator
Dear All,
I have log on on the cpanel sever through normal user on which centos is install. But when i want to switch user and give the command su -. it gives me the following error

-bash: /bin/su: Permission Denied

Actually i want to disabled the root user access on the cpanel server . But i am facing the above mentioned problem. Please guide me who can i switch user on the cpanel user.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Hello :)

You can add that user to the wheel group via:

"WHM >> Security Center >> Manage Wheel Group Users"

This will ensure the user can use the system's "su" utility. If you want to disable password authentication for SSH, you can utilize the following option:

"WHM >> Security Center >> SSH Password Authorization Tweak"

As for disabling root access to SSH, you can ensure the following line is present in your "/etc/ssh/sshd_config" file:

Code:
PermitRootLogin no
Thank you.