[systemd-devel] Seeing logging as user

Cecil Westerhof Cecil.Westerhof at Snow.nl
Thu Nov 28 15:15:47 PST 2013


On 11/28/2013 12:37 AM, Kay Sievers wrote:
>> I have to give a presentation about systemd/journald. One of the things I
>> want to show is that you do not need an administrator to see the log
>> messages that are generated by you.
>>
>> I did:
>> - makedir /var/log/journal
>> - systemctl kill -s SIGUSR1 systemd-journald
>>
>> As user cecil I did:
>>      printf "Create an error\n" | logger
>>
>> When I as root do:
>>      journalctl _UID=<uid>
>>
>> I see:
>>      Nov 27 23:26:38 Equus.Decebal.nl cecil[25091]: Create an error
>>
>> But when I do the same as cecil, I see nothing. What is going wrong here?
>
> http://www.freedesktop.org/software/systemd/man/systemd-journald.service.html#Access%20Control

What if I want this user to also see the log of for example cron?


More information about the systemd-devel mailing list