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:
Which is exactly what we wantCode:-jailshell: /usr/bin/wget: Permission denied
Here is the permission of /usr/bin/sudo:
Here is the permission of /usr/bin/wget:Code:---s--x--x 2 root root 153488 Jan 6 2007 /usr/bin/sudo
But when we try and run wget through sudo:Code:-rwxr-x--- 1 root root 234452 Mar 15 2007 /usr/bin/wget
[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



LinkBack URL
About LinkBacks
Reply With Quote




