This might be stupid but here we go.
I am user A on a server and I've added myself to the systemd-journal group and I have a bash script which includes the line
journalctl --since yesterday > output
Since I've added myself to the systemd-journal group it works as expected when running the script from directly the shell via ./bashscript and I get all info I want from journalctl into the output file.
Now I want to automate the execution of the script so I create a systemd service in /home/A/.config/systemd/user looking like
and an associated timer
Description= bashscript timeer
Then I enable it via
systemctl --user enable script.timer
.. and wait a while.
It turns out that it works but with one error. If I look at the journal at the time the timer executes the script I see the following:
Feb 18 05:56:23 machine script: Hint: You are currently not seeing messages from other users and the system.
Feb 18 05:56:23 machine script: Users in the 'systemd-journal' group can see all messages. Pass -q to
Feb 18 05:56:23 machine script: turn off this notice.
but I want all systeminfo from journalctl like when I execute the script manually. Shouldn't it be enough that user A is in that group?
Any ideas how to fix this?