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.

SOLVED Add Users to Sudoers File

Discussion in 'General Discussion' started by Maor Bar, Jun 28, 2017.

  1. Maor Bar

    Maor Bar Member

    Joined:
    Jun 26, 2017
    Messages:
    8
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Israel
    cPanel Access Level:
    Root Administrator
    Hello,
    I have one whm and I set 5 different domains inside him.

    I want to access ssh to every domain to change permission with shell but every time I get the error

    "your domain" is not in the sudoers file. This incident will be reported.

    How can I work with ssh as sudo ?

    thank you.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,186
    Likes Received:
    1,295
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You should be able to use the "su" command if you are attempting to switch from your "root" SSH session into a user's SSH session. EX:

    Code:
    [root@server1 centos]# su test123
    [test123@server1 centos]$
    Thank you.
     
    Maor Bar likes this.
  3. Maor Bar

    Maor Bar Member

    Joined:
    Jun 26, 2017
    Messages:
    8
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Israel
    cPanel Access Level:
    Root Administrator
    Thank you!
     
    cPanelMichael likes this.
Loading...

Share This Page