FS#47162 - [systemd] journal-remote is missing write permissions to /var/log/journal/remote
Attached to Project:
Arch Linux
Opened by Daniel Speichert (dasp) - Monday, 23 November 2015, 21:17 GMT
Last edited by Toolybird (Toolybird) - Saturday, 03 June 2023, 02:13 GMT
Opened by Daniel Speichert (dasp) - Monday, 23 November 2015, 21:17 GMT
Last edited by Toolybird (Toolybird) - Saturday, 03 June 2023, 02:13 GMT
|
Details
Description:
systemd-journal-remote is missing write permissions to /var/log/journal/remote Default permissions for /var/log/journal/remote File: ‘/var/log/journal/remote/’ Size: 0 Blocks: 0 IO Block: 4096 directory Device: 14h/20d Inode: 1540369 Links: 1 Access: (2775/drwxrwsr-x) Uid: ( 0/ root) Gid: ( 999/systemd-journal-remote) Setting owner on /var/log/journal/remote to systemd-journal-remote fixes the problem. Additional info: * package version(s) systemd: 227-1 * config and/or log files etc. Nov 23 21:58:03 test1 systemd-journal-remote[23567]: Failed to open output journal /var/log/journal/remote//remote-test1.journal: Permission denied Nov 23 21:58:04 test1 systemd-journal-remote[23567]: Failed to get writer for source test1: Permission denied Steps to reproduce: * Get systemd-journal-remote and systemd-journal-upload to work * Check journal on systemd-journal-remote's host |
This task depends upon
Closed by Toolybird (Toolybird)
Saturday, 03 June 2023, 02:13 GMT
Reason for closing: No response
Additional comments about closing: Plus it's old and stale. These days the dir is created in post_install()
Saturday, 03 June 2023, 02:13 GMT
Reason for closing: No response
Additional comments about closing: Plus it's old and stale. These days the dir is created in post_install()
I strongly dispute that... the manpage even says the output directory must already exist.
Since dcdd4411407067fa1e464dc26ab85ae598fcad7d, tmpfiles fragments set ownership to systemd-journal-remote:systemd-journal-remote. What happens if you run:
SYSTEMD_LOG_LEVEL=debug systemd-tmpfiles --create /lib/tmpfiles.d/systemd-remote.conf
Do the permissions get fixed? Do you have any files in /etc/tmpfiles.d?
Definitely missing some information here...