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!

sudo & jailshell

Discussion in 'General Discussion' started by varun, Jun 10, 2008.

  1. varun

    varun Registered

    Jan 28, 2004
    Likes Received:
    Trophy Points:

    We run a couple of CentOS based VPS' with different hosting providers. All the users on the VPS' have jailshell enabled and this causes sudo to stop for that user.

    For example, we are trying to give access to wget to a specific jailshelled user through sudo.

    When we try and run wget directly:

    -jailshell: /usr/bin/wget: Permission denied
    Which is exactly what we want

    Here is the permission of /usr/bin/sudo:

    ---s--x--x 2 root root 153488 Jan  6  2007 /usr/bin/sudo
    Here is the permission of /usr/bin/wget:

    -rwxr-x--- 1 root root 234452 Mar 15  2007 /usr/bin/wget
    But when we try and run wget through sudo:

    [nettest@srv0101 ~]$sudo wget

    we get:

    sudo: must be setuid root

    But as you can see above, sudo is already setuid root

    The /etc/sudoers file is attached with this post

    Note that if we create a normal Linux user with useradd or remove jailshell and then setup sudo for that user, sudo works as expected.

    While these problems might not directly be related to WHM/cPanel, we can't find anything by Googling, so I thought someone here might know if WHM/cPanel has some voodoo related to jailshells that we are missing out.

    Any clues?


    Attached Files:


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