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

@eternaltyro 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

@furicle yeah, using sudo works but i'm just annoyed that the --machine flag behaves differently on journalctl to systemctl. I guess I'm salty the switches are not intuitive.