[systemd-devel] systemd-sysusers
Johannes Ernst
johannes.ernst at gmail.com
Mon Feb 5 18:35:45 UTC 2018
> On Feb 5, 2018, at 10:31, Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl> wrote:
<snip>
>> systemd-sysusers
>> [[ -d /var/lib/foo ]] && mkdir -m755 /var/lib/foo
>> chown $(id -u foo):$(id -g foo) /var/lib/foo
>
> # /usr/lib/tmpfiles.d/foo.conf
> d /var/lib/foo 0755 foo foo -
>
> (BTW, chown $(id -u foo):$(id -g foo) ... is the same as chown foo:foo …).
Good point :-)
If so, the wording in man systemd-tmpfiles.d is still rather discouraging to people like me to do it this way because it very clearly talks about “temporary” files.
Thanks,
Johannes.
More information about the systemd-devel
mailing list