Public bug reported: As discussed in Ubuntu Discourse: https://discourse.ubuntu.com/t/84928
UBUNTU VERSION $ cat /etc/os-release NAME="Ubuntu Core" VERSION="26" ID=ubuntu-core PRETTY_NAME="Ubuntu Core 26" VERSION_ID="26" HOME_URL="https://snapcraft.io/" BUG_REPORT_URL="https://bugs.launchpad.net/snapd/" SNAP VERSION $ snap version snap 2.76.1 snapd 2.76.1 series 16 kernel 7.0.0-27-generic architecture amd64 LXD, LXC VERSION $ lxc --version 5.21.5 LTS $ snap list | grep -F lxd lxd 5.21.5-f2a1a0e 40074 5.21/stable canonical** - PROBLEM DESCRIPTION A new user in an LXC instance, even if admin, cannot use sudo. TO DUPLICATE 1. Create a new LXC instance in Ubuntu Core 26. $ lxc launch ubuntu:26.04 abercorn 2. Enter the LXC instance. $ lxc shell abercorn 3. Create a new admin user in the LXC instance. $ adduser --comment='Alice' alice New password: Retype new password: passwd: password updated successfully $ adduser alice sudo 4. Log in as that new user. $ su --login alice alice@abercorn:~$ id uid=1001(alice) gid=1001(alice) groups=1001(alice),27(sudo),100(users) 5. Try to use sudo. alice@abercorn:~$ sudo true sudo: sudo must be owned by uid 0 and have the setuid bit set WHAT SHOULD HAVE HAPPENED The new admin user should be able to use sudo (within the LXC instance). CAUSE OF PROBLEM Speculation: This seems to be a regression caused by changed mount options when hardening the system. ** Affects: lxc (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2161603 Title: New user in LXC instance (in LXD) cannot use sudo, even though an admin To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/2161603/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
