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!

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:
    9
    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:
    44,323
    Likes Received:
    1,851
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Maor Bar likes this.
  3. Maor Bar

    Maor Bar Member

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

    joburg Registered

    Joined:
    Jun 30, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    CA
    cPanel Access Level:
    Website Owner
    I think the answer provided for the thread topic is a bit different? I actually want to do exactly as the topic says: I want to add a cpanel user (test) to the sudoers file. Such that user "test" can do what root can do by prepending sudo to all commands.
    thanks
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,323
    Likes Received:
    1,851
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    You can find information about how to do this under the "Important" section on the following document:

    Manage Wheel Group Users - Version 68 Documentation - cPanel Documentation

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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