Thanks Bryce for the PPA. I can confirm it does work: # reproduce the problem: root@sudo-sru-lp1857036-test:~# sudo true sudo: setrlimit(RLIMIT_CORE): Operation not permitted
# get the fix from the PPA: root@sudo-sru-lp1857036-test:~# apt-add-repository -yus ppa:bryce/sudo-sru-lp1857036-setrlimit-in-lxc Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB] Get:2 http://ppa.launchpad.net/bryce/sudo-sru-lp1857036-setrlimit-in-lxc/ubuntu focal InRelease [17.6 kB] Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease Get:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease [111 kB] Get:5 http://ppa.launchpad.net/bryce/sudo-sru-lp1857036-setrlimit-in-lxc/ubuntu focal/main Sources [864 B] Get:6 http://ppa.launchpad.net/bryce/sudo-sru-lp1857036-setrlimit-in-lxc/ubuntu focal/main amd64 Packages [756 B] Get:7 http://ppa.launchpad.net/bryce/sudo-sru-lp1857036-setrlimit-in-lxc/ubuntu focal/main Translation-en [528 B] Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [261 kB] Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main Translation-en [102 kB] Get:10 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [28.4 kB] Get:11 http://archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [7,560 B] Fetched 637 kB in 2s (389 kB/s) Reading package lists... Done root@sudo-sru-lp1857036-test:~# apt-get install -V sudo Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: sudo (1.8.31-1ubuntu1 => 1.8.31-1ubuntu2~focal1) 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 1,320 kB of archives. After this operation, 1,849 kB of additional disk space will be used. Get:1 http://ppa.launchpad.net/bryce/sudo-sru-lp1857036-setrlimit-in-lxc/ubuntu focal/main amd64 sudo amd64 1.8.31-1ubuntu2~focal1 [1,320 kB] Fetched 1,320 kB in 3s (495 kB/s) (Reading database ... 16712 files and directories currently installed.) Preparing to unpack .../sudo_1.8.31-1ubuntu2~focal1_amd64.deb ... Unpacking sudo (1.8.31-1ubuntu2~focal1) over (1.8.31-1ubuntu1) ... Setting up sudo (1.8.31-1ubuntu2~focal1) ... # confirm the fix: root@sudo-sru-lp1857036-test:~# sudo true root@sudo-sru-lp1857036-test:~# -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1857036 Title: `sudo --login --user USERNAME` throws `setrlimit(RLIMIT_CORE): Operation not permitted` error when run inside a container. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/1857036/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
