sudo & jailshell

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.