[systemd-devel] systemd-sysusers

Reindl Harald h.reindl at thelounge.net
Mon Feb 5 18:39:51 UTC 2018



Am 05.02.2018 um 19:35 schrieb Johannes Ernst:
>> 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

because the stuff in /tmp and especially /run *is* temporary based on 
the nature of tmpfs


More information about the systemd-devel mailing list