Public bug reported: We hit this while running src:autopkgtest autopackage tests (d/t/unshare), but other packages may be affected too. In short: this works on my Noble laptop:
paride@ossimoro:~$ cat /etc/subuid paride:100000:65536 paride@ossimoro:~$ cat /etc/subgid paride:100000:65536 paride@ossimoro:~$ unshare --map-auto --map-root-user root@ossimoro:~# id uid=0(root) gid=0(root) groups=0(root),65534(nogroup) root@ossimoro:~# su -c id uid=0(root) gid=0(root) groups=0(root) However, in a Noble amd64 testbed VM (running in lcy02): ubuntu@autopkgtest:~$ cat /etc/subuid ubuntu:100000:65536 ubuntu@autopkgtest:~$ cat /etc/subgid ubuntu:100000:65536 ubuntu@autopkgtest:~$ unshare --map-auto --map-root-user root@autopkgtest:~# id uid=0(root) gid=0(root) groups=0(root),65534(nogroup) root@autopkgtest:~# su -c id su: cannot set groups: Operation not permitted root@autopkgtest:~# echo $? 1 I am currently unable to tell what differs between the two systems. ** Affects: auto-package-testing Importance: Undecided Status: New ** Description changed: We hit this while running src:autopkgtest autopackage tests (d/t/unshare), but other packages may be affected too. In short: this works on my Noble laptop: paride@ossimoro:~$ cat /etc/subuid paride:100000:65536 paride@ossimoro:~$ cat /etc/subgid paride:100000:65536 paride@ossimoro:~$ unshare --map-auto --map-root-user root@ossimoro:~# id uid=0(root) gid=0(root) groups=0(root),65534(nogroup) root@ossimoro:~# su -c id uid=0(root) gid=0(root) groups=0(root) - However, in a Noble arm64 testbed VM (running in lcy02): + However, in a Noble amd64 testbed VM (running in lcy02): ubuntu@autopkgtest:~$ cat /etc/subuid ubuntu:100000:65536 ubuntu@autopkgtest:~$ cat /etc/subgid ubuntu:100000:65536 ubuntu@autopkgtest:~$ unshare --map-auto --map-root-user root@autopkgtest:~# id uid=0(root) gid=0(root) groups=0(root),65534(nogroup) root@autopkgtest:~# su -c id su: cannot set groups: Operation not permitted root@autopkgtest:~# echo $? 1 I am currently unable to tell what differs between the two systems. -- You received this bug notification because you are a member of Canonical's Ubuntu QA, which is subscribed to Auto Package Testing. https://bugs.launchpad.net/bugs/2063214 Title: unshare(1) fails within testbed VMs Status in Auto Package Testing: New Bug description: We hit this while running src:autopkgtest autopackage tests (d/t/unshare), but other packages may be affected too. In short: this works on my Noble laptop: paride@ossimoro:~$ cat /etc/subuid paride:100000:65536 paride@ossimoro:~$ cat /etc/subgid paride:100000:65536 paride@ossimoro:~$ unshare --map-auto --map-root-user root@ossimoro:~# id uid=0(root) gid=0(root) groups=0(root),65534(nogroup) root@ossimoro:~# su -c id uid=0(root) gid=0(root) groups=0(root) However, in a Noble amd64 testbed VM (running in lcy02): ubuntu@autopkgtest:~$ cat /etc/subuid ubuntu:100000:65536 ubuntu@autopkgtest:~$ cat /etc/subgid ubuntu:100000:65536 ubuntu@autopkgtest:~$ unshare --map-auto --map-root-user root@autopkgtest:~# id uid=0(root) gid=0(root) groups=0(root),65534(nogroup) root@autopkgtest:~# su -c id su: cannot set groups: Operation not permitted root@autopkgtest:~# echo $? 1 I am currently unable to tell what differs between the two systems. To manage notifications about this bug go to: https://bugs.launchpad.net/auto-package-testing/+bug/2063214/+subscriptions -- Mailing list: https://launchpad.net/~canonical-ubuntu-qa Post to : canonical-ubuntu-qa@lists.launchpad.net Unsubscribe : https://launchpad.net/~canonical-ubuntu-qa More help : https://help.launchpad.net/ListHelp