On Tue, 23 Jan 2024 21:16:42 +0300, Andrei Borzenkov wrote:
Are you talking about https://github.com/89luca89/distrobox/issues/1092? Then it is clear - distrobox attempts to disable "Default targetpw" in /etc/sudoers, but Tumbleweed/MicroOS have it in /usr/etc/sudoers.
It will also fail in every distribution which is using /etc/sudoers.d instead of the main file.
Yes, it is exactly that. Just do
docker -it exec <container> bash echo 'Defaults !targetpw' > /etc/sudoers.d/targetpw
or use visudo if your container includes vi.
Excellent, thanks for this - that does solve the issue for me here. I've updated the thread in the forums (probably tagged you as well in mentioning this thread on the ML). I don't know why it didn't occur to me to use 'docker exec' to inspect the container more closely. That's a good trick that I'll add to my toolbox. :) -- Jim Henderson Please keep on-topic replies on the list so everyone benefits