Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 1 of 1
  1. #1
    Registered User
    Join Date
    Jan 2004
    Posts
    1

    Default sudo & jailshell

    Hi!

    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:

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

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

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

    Code:
    -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?

    Regards,
    -Varun
    Attached Files

Similar Threads & Tags
Similar threads

  1. jailshell & spamassassin
    By The Goose in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-16-2005, 10:38 AM
  2. SSH bin/bash & JailShell Scrolling Prompts
    By chican0 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-21-2004, 12:33 PM
  3. Jailshell, virtfs, & quota's...oh my
    By Ben in forum cPanel and WHM Discussions
    Replies: 20
    Last Post: 07-31-2004, 12:03 PM
  4. Resellers & Jailshell
    By bmuthig in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-17-2004, 02:48 PM
  5. Jailshell & phpSUExec
    By WMS in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-16-2003, 08:06 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube