The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can not switch user on cpanel server

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

  1. yasir.iqbal12

    yasir.iqbal12 Member

    Joined:
    Jan 1, 2012
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    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:

    Code:
    PermitRootLogin no
    Thank you.
     
Loading...

Share This Page