]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
useradd: clarify the useradd -d parameter behavior in man page 226/head
authorikerexxe <ipedrosa@redhat.com>
Wed, 4 Mar 2020 13:50:04 +0000 (14:50 +0100)
committerSerge Hallyn <serge@hallyn.com>
Fri, 20 Mar 2020 22:45:01 +0000 (17:45 -0500)
Explanation: clarify the useradd -d parameter as it does create directory HOME_DIR if it doesn't exit.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1677005

Changelog: [serge] minor tweak to the text

man/useradd.8.xml

index 03612ce8aefc50323b18f32d271e89e740143738..023c0d6981b0b1f2931be494c31d29bb54ec4acc 100644 (file)
            login directory. The default is to append the
            <replaceable>LOGIN</replaceable> name to
            <replaceable>BASE_DIR</replaceable> and use that as the login
-           directory name. The directory <replaceable>HOME_DIR</replaceable>
-           does not have to exist but will not be created if it is missing.
+           directory name.  If the directory
+           <replaceable>HOME_DIR</replaceable> does not exist, then it
+           will be created unless the <option>-M</option> option is
+           specified.
          </para>
        </listitem>
       </varlistentry>