Activity log for bug #1389305

Date Who What changed Old value New value Message
2014-11-04 16:25:25 Adam Ryczkowski bug added bug
2014-11-07 09:45:37 Serge Hallyn lxc (Ubuntu): status New Incomplete
2014-11-21 04:59:13 Serge Hallyn bug task added ecryptfs-utils (Ubuntu)
2014-11-21 04:59:34 Serge Hallyn lxc (Ubuntu): status Incomplete Invalid
2014-11-21 13:55:34 Serge Hallyn bug task added linux (Ubuntu)
2014-11-21 13:56:03 Serge Hallyn summary sudo doesn't work on unprivileged lxc container sudo doesn't work on unprivileged lxc container on top of ecryptfs
2014-11-21 13:57:19 Serge Hallyn lxc (Ubuntu): status Invalid Triaged
2014-11-21 13:57:23 Serge Hallyn lxc (Ubuntu): importance Undecided Low
2014-11-21 13:57:47 Serge Hallyn linux (Ubuntu): importance Undecided Medium
2014-11-21 14:00:08 Brad Figg linux (Ubuntu): status New Incomplete
2014-11-21 17:12:09 Adam Ryczkowski tags apport-collected trusty
2014-11-21 17:12:11 Adam Ryczkowski description On Ubuntu 14.04 64 bit, after adding a user into an unprivileged container, the sudo complains that: $ sudo su sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges? To reproduce: 1. Download and install the Ubuntu amd64 minimalcd 2. Install lxc on it and openssh for convenience. 3. follow https://www.stgraber.org/2014/01/17/lxc-1-0-unprivileged-containers/ ; specifically do: a) sudo usermod --add-subuids 100000-165536 $USER b) sudo usermod --add-subgids 100000-165536 $USER c) sudo chmod +x $HOME d) create the file ~/.config/lxc/default.conf with the following contents: lxc.include = /etc/lxc/default.conf lxc.id_map = u 0 100000 65536 lxc.id_map = g 0 100000 65536 e) echo "$USER veth lxcbr0 10" | sudo tee /etc/lxc/lxc-usernet (restart is not required) 4. Create the container with lxc-create -t download -n p1 -- -d ubuntu -r trusty -a amd64 5. Install openssh-server in the container: lxc-start -d -n p1 lxc-attach -n p1 -- apt-get install openssh-server 6. Add a user "adam" with the group sudo lxc-attach -n p1 -- adduser adam sudo 7. Set a password for the user 8. Log in via ssh (and provide the password from step 7) ssh p1@adam 9. On the p1: adam@p1$ sudo su sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges? I expected it to make change the user to root. lxc version: 1.0.3-0ubuntu3 $cat ~/.cache/lxc/download/ubuntu/trusty/amd64/default/build_id 20141101_03:49 On Ubuntu 14.04 64 bit, after adding a user into an unprivileged container, the sudo complains that: $ sudo su sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges? To reproduce: 1. Download and install the Ubuntu amd64 minimalcd 2. Install lxc on it and openssh for convenience. 3. follow https://www.stgraber.org/2014/01/17/lxc-1-0-unprivileged-containers/ ; specifically do: a) sudo usermod --add-subuids 100000-165536 $USER b) sudo usermod --add-subgids 100000-165536 $USER c) sudo chmod +x $HOME d) create the file ~/.config/lxc/default.conf with the following contents: lxc.include = /etc/lxc/default.conf lxc.id_map = u 0 100000 65536 lxc.id_map = g 0 100000 65536 e) echo "$USER veth lxcbr0 10" | sudo tee /etc/lxc/lxc-usernet (restart is not required) 4. Create the container with lxc-create -t download -n p1 -- -d ubuntu -r trusty -a amd64 5. Install openssh-server in the container: lxc-start -d -n p1 lxc-attach -n p1 -- apt-get install openssh-server 6. Add a user "adam" with the group sudo lxc-attach -n p1 -- adduser adam sudo 7. Set a password for the user 8. Log in via ssh (and provide the password from step 7) ssh p1@adam 9. On the p1: adam@p1$ sudo su sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges? I expected it to make change the user to root. lxc version: 1.0.3-0ubuntu3 $cat ~/.cache/lxc/download/ubuntu/trusty/amd64/default/build_id 20141101_03:49 --- ApportVersion: 2.14.1-0ubuntu3.5 Architecture: amd64 DistroRelease: Ubuntu 14.04 EcryptfsInUse: Yes Package: lxc PackageArchitecture: amd64 ProcVersionSignature: Ubuntu 3.13.0-39.66-generic 3.13.11.8 Tags: trusty Uname: Linux 3.13.0-39-generic x86_64 UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo _MarkForUpload: True
2014-11-21 17:12:13 Adam Ryczkowski attachment added Dependencies.txt https://bugs.launchpad.net/bugs/1389305/+attachment/4265210/+files/Dependencies.txt
2014-11-21 17:12:15 Adam Ryczkowski attachment added ProcEnviron.txt https://bugs.launchpad.net/bugs/1389305/+attachment/4265211/+files/ProcEnviron.txt
2014-11-22 08:42:41 Adam Ryczkowski linux (Ubuntu): status Incomplete Confirmed
2015-03-31 16:11:23 Launchpad Janitor ecryptfs-utils (Ubuntu): status New Confirmed
2015-11-10 11:27:35 Ivan Ogai bug added subscriber Ivan Ogai