I passed in /etc/passwd /etc/sudoers /etc/shadow as volumes and now the uid mapping is getting in th
I passed in /etc/passwd /etc/sudoers /etc/shadow as volumes and now the uid mapping is getting in the way
$ ls -la /etc/passwd
-rw-r--r--. 1 root root 1417 Aug 3 17:00 /etc/passwd
$ sudo su
sudo: /etc/sudoers is owned by uid 65534, should be 0
sudo: no valid sudoers sources found, quitting
sudo: error initializing audit plugin sudoers_auditsudo -u $user podman may still work?nsenter -t 1 to get real rootpodman exec -it -u 0:0 into the container and then do passwd $youruserincontainer <- that worked--privileged and removed the /etc/selinux mountRunInit=true which would execute /sbin/init, and there's the Exec= which runs sleep just to get the container going--rootfs /:O$ ls -la /etc/passwd
-rw-r--r--. 1 root root 1417 Aug 3 17:00 /etc/passwd
$ sudo su
sudo: /etc/sudoers is owned by uid 65534, should be 0
sudo: no valid sudoers sources found, quitting
sudo: error initializing audit plugin sudoers_auditsudo -u $user podmannsenter -t 1bash-5.2# sudo -u fullu podman exec -it cf7 passwd
Changing password for fullu.
Current password:
passwd: Authentication token manipulation errorpodman exec -it -u 0:0passwd $youruserincontainer$ sudo su
[sudo] password for fullu:
fullu is not in the sudoers file. This incident will be reported.
$ dpkg: error processing archive /var/cache/apt/archives/libpython3.10-minimal_3.1
0.12-1~22.04.2_amd64.deb (--unpack):
new libpython3.10-minimal:amd64 package pre-removal script subprocess returned
error exit status 2
dpkg (subprocess): cannot set security execution context for maintainer script:
Invalid argumentRunInit=trueExec=--rootfs /:O