]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: systemd-sysusers does not create home dir
authorLucas Werkmeister <mail@lucaswerkmeister.de>
Sun, 3 Jan 2021 13:44:21 +0000 (14:44 +0100)
committerLennart Poettering <lennart@poettering.net>
Sun, 3 Jan 2021 21:51:07 +0000 (22:51 +0100)
Document that systemd-sysusers doesn’t create the specified home
directory, and point to systemd-tmpfiles as the service that can create
the home directory instead. (systemd-tmpfiles-setup.service is ordered
After=systemd-sysusers.service, so by the time systemd-tmpfiles would
create the home directory, sysusers would have created the owning user
already, and it should all work out.)

man/sysusers.d.xml

index a76dda954b14433c7ffbb1ffaeb88ef0bb7fd3e8..e15c1b2eee5778d22170d8551e974dd14473f6bb 100644 (file)
@@ -216,6 +216,11 @@ r     -        500-900
       <para>Only applies to lines of type <varname>u</varname> and should otherwise
       be left unset (or <literal>-</literal>). It is recommended to omit this, unless
       software strictly requires a home directory to be set.</para>
+
+      <para><command>systemd-sysusers</command> only sets the home directory record in the
+      user database. To actually create the directory, consider adding a corresponding
+      <citerefentry><refentrytitle>tmpfiles.d</refentrytitle><manvolnum>5</manvolnum></citerefentry>
+      fragment.</para>
     </refsect2>
 
     <refsect2>