How to allow a user to use journalctl to see user-specific systemd service logs?
On older systemd versions, you'll have to use journalctl --user --user-unit=SERVICENAME
(on newer versions journalctl --user -u SERVICENAME
will work fine).
However, this only works if the Storage
directive of the [Journal]
section of /etc/systemd/journald.conf
is set to persistent
(instead of auto
or volatile
). Reboot after editing the configuration file and the user will be able to see the journal.
More information: https://www.freedesktop.org/software/systemd/man/journald.conf.html https://lists.freedesktop.org/archives/systemd-devel/2016-October/037554.html