With systemd 235.38-3, what should perms and group of /var/log/journal/ be?
Update: the change in systemd 235.38-3 has been reverted on 235.38-4. Question no longer relevant.
Just upgraded from systemd 235.38-2 to 235.38-3 and saw this message in pacman output:
warning: directory permissions differ on /var/log/journal/
filesystem: 2755 package: 755
That 2 in 2755 is setgid. On my filesystem /var/log/journal/ has owner:group set to root:systemd-journal. Together that means files created in /var/log/journal/ will have group set to systemd-journal instead of using the group from the process that created the file.
The change in the Arch package reads https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/systemd&id=7256226e9036a1a73e94accfe8fbddc482f76545 :
do not change permission for /var/log/journal, this fails with dynamic gids.
Let systemd-sysusers handles this for us instead.
So I looked at systemd-sysusers and the only configuration files for it on my system are in /usr/lib/sysusers.d/ and all they do in relation to this is create the group systemd-journal. Which leaves me confused as to who or what sets the setgid and group system-journal on /var/log/journal/ for new installs? Or should either or both no longer be set and should I revert to permission 755 and group root?
Edited 13 Dec 2017. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 25 · 100% up
- Kind
- Text
- ID
- 7jecps
6 comments
check /usr/lib/tmpfiles.d/systemd.conf
idk if you need/should revert perms on the directory (doubt it), i tried as a test [reverting to 755 manually] and i shutdown and booted fine, and tmpfiles services set setgid again as expected.
i couldn't read the commit at your link...
Try https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/systemd&id=7256226e9036a1a73e94accfe8fbddc482f76545 (There was a colon at the end)
Deleted before we saved it.
That's very helpful, thanks. Indeed that file sets a bunch of things for /var/log/journal/. Like specially set mode 2755 and group systemd-journal:
Looks like that decision has been reverted again
https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/systemd&id=0f6210fe56561562851df371ba477e239c258030
So, no don't adjust them.
And that just goes to show if you just sleep a night on it, a solution will present itself in the morning :-) Thanks for the info.