* Systemd guix containers: unable to execute Permission denied
@ 2021-06-19 14:20 Edouard Klein
0 siblings, 0 replies; only message in thread
From: Edouard Klein @ 2021-06-19 14:20 UTC (permalink / raw)
To: help-guix
Hi,
I'm running a container using a systemd unit. This unit calls a script
that call guix system container and calls the returned script.
When I launch this script by itself, everything works as expected.
When I launch this script with systemd, I can launch any command except
as root in the container.
For example, once I get a shell in the container with guix container
exec, I can do:
sudo -u nginx echo toto
And it will succeed when the container is launched by hand, but failed
when launched with systemd.
Any idea, even far fetched, will be appreciated. I have a burning hatred
for systemd (not my choice) that this incident is fueling.
I've tried everything I could think of:
- activating and deactivating various systemd flags
- changing the uid of nginx to match a user on the host system
- changing the uid of nginx to avoid matching a user on the host system
- stopping nscd on the container,
etc.
I'm looking into other means of achieving what I want, but this SHOULD
work, and it WOULD if it wasn't for effing systemd.
Cheers,
Edouard.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-19 14:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-19 14:20 Systemd guix containers: unable to execute Permission denied Edouard Klein
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).