Post #2889140
2026-02-24 22:13 UTC
How do I use journalctl from the root account to tail logs of a service running as a user ? I am using #podman #quadlets to manage containers using #systemd btw
Doing this:
journalctl --user --machine=containeruser@ -xeu helloworld.service
Gives me this error:
Failed to open root directory of machine 'containeruser@': No machine 'containeruser@' known
Failed to open journal: No such device or address
help!?
#linux #selfhosting #quadlet
Replies (2)
-
@eternaltyro@mastodon.social 2026-02-24 22:14
Doing `machinectl shell containeruser@` logs me in properly And then I can do `journalctl --user -f -xeu helloworld` which works fine and gives me the logs.
-
@furicle@mastodon.social 2026-02-25 19:57
@eternaltyro@mastodon.social playing with this. looks like `sudo -u otherUser journalctl -e --user --unit other.service` works, but you have to specify the user I would have thought niavely that `sudo journalctl -e --user --user-unit other.service` would work, but it doesn't