Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Can not switch user on cpanel server

Discussion in 'Security' started by yasir.iqbal12, Jan 23, 2012.

  1. yasir.iqbal12

    yasir.iqbal12 Member

    Jan 1, 2012
    Likes Received:
    Trophy Points:
    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.
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    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:

    PermitRootLogin no
    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice