You are not logged in.
I have a user defined service in ~/.config/systemd/user/*.service
However, when I do a
journalctl --user --user-unit <SEVICE_NAME> --vacuum-time=2das the user, it gives:
Failed to delete archived journal /var/log/journal/5d0d21ab32464a8d9ca6be455c51e15a/user-1000@2e8b2c2576fe4cdd98b23ec83e80e265-0000000000016f75-00053dc58c5a30cc.journal: Permission denied
Failed to delete archived journal /var/log/journal/5d0d21ab32464a8d9ca6be455c51e15a/user-1000@2e8b2c2576fe4cdd98b23ec83e80e265-0000000000020501-0005402b4f2efb09.journal: Permission denied
Failed to delete archived journal /var/log/journal/5d0d21ab32464a8d9ca6be455c51e15a/user-1000@2e8b2c2576fe4cdd98b23ec83e80e265-0000000000023e64-0005428fa8749b4b.journal: Permission denied
Failed to delete archived journal /var/log/journal/5d0d21ab32464a8d9ca6be455c51e15a/user-1000@2e8b2c2576fe4cdd98b23ec83e80e265-00000000000282c4-000544f6698d8d93.journal: Permission deniedls -l for these file gives:
$ ll /var/log/journal/5d0d21ab32464a8d9ca6be455c51e15a/user-1000@2e8b2c2576fe4cdd98b23ec83e80e265-00000000000282c4-000544f6698d8d93.journal
-rw-r-----+ 1 root systemd-journal 50331648 Jan 31 09:05 /var/log/journal/5d0d21ab32464a8d9ca6be455c51e15a/user-1000@2e8b2c2576fe4cdd98b23ec83e80e265-00000000000282c4-000544f6698d8d93.journalWhich seemed to be only writable by root. Is there a config for such journal set to be owned by the service owner?
Last edited by tgckpg (2017-02-03 16:27:34)
Offline
From 'man systemd-journald.service' ACCESS CONTROL and 'man setfacl' you could try:
# setfacl -Rnm d:u:1000:rwx /var/log/journal/
or something of the sort.
(not tested by me)
Offline
Thanks, the man page explains it well. I'll mark this as solve:)
Offline