Error when logging into chroot jail: "sudo: must be setuid root"
Hi,
I just finished following this tutorial to set up a simple chroot jail on my Ubuntu 12.04 server, and after following all the steps and trying to log in, I get the MOTD but right after that it displays this error message, and then the connection is closed: Code:
sudo: must be setuid root Code:
admin:x:119:jailuser |
try booting the ubuntu server in recovery mode (root prompt) and running chmod u+s on /usr/bin/sudo
if that fails, try doing it on the client machine. |
Quote:
Code:
su: Cannot determine your user name. |
Ubuntu 12.04 has dropped the admin group. See https://wiki.ubuntu.com/PrecisePango...Infrastructure
Try to add 'jailuser' to the sudo group instead. |
this is an easy fix. get to root, and type the following:
chmod 4111 /usr/bin/sudo chown root:root /usr/bin/sudo problem should be solved. the permissions should look like this: Code:
---s--x--x. 2 root root 77372 May 17 08:00 /usr/bin/sudo |
All times are GMT -5. The time now is 11:29 AM. |