diff options
author | Balint Reczey <balint@balintreczey.hu> | 2021-11-07 15:18:49 +0100 |
---|---|---|
committer | Balint Reczey <balint@balintreczey.hu> | 2021-11-07 15:18:49 +0100 |
commit | 749c1780621163ca5108f164861324bafa9e0ae8 (patch) | |
tree | 51001872624a692018c45bf39276df94b603fb19 /man/useradd.8.xml | |
parent | d906ecd3b652d95af6ffb974a2f6669501bb9496 (diff) | |
download | shadow-749c1780621163ca5108f164861324bafa9e0ae8.tar.gz |
New upstream version 4.9upstream/4.9
Diffstat (limited to 'man/useradd.8.xml')
-rw-r--r-- | man/useradd.8.xml | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/man/useradd.8.xml b/man/useradd.8.xml index 03612ce8..85d83560 100644 --- a/man/useradd.8.xml +++ b/man/useradd.8.xml @@ -181,8 +181,10 @@ 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> @@ -359,6 +361,11 @@ <option>CREATE_HOME</option> is not enabled, no home directories are created. </para> + <para> + The directory where the user's home directory is created must + exist and have proper SELinux context and permissions. Otherwise + the user's home directory cannot be created or accessed. + </para> </listitem> </varlistentry> <varlistentry> @@ -736,6 +743,12 @@ </listitem> </varlistentry> <varlistentry> + <term><filename>/etc/shadow-maint/useradd-pre.d/*</filename>, <filename>/etc/shadow-maint/useradd-post.d/*</filename></term> + <listitem> + <para>Run-part files to execute during user addition. The environment variable <command>ACTION</command> will be populated with useradd and <command>SUBJECT</command> with the <command>username</command>. <filename>useradd-pre.d</filename> will be executed prior to any user addition. <filename>useradd-post.d</filename> will execute after user addition. If a script exits non-zero then execution will terminate.</para> + </listitem> + </varlistentry> + <varlistentry> <term><filename>/etc/skel/</filename></term> <listitem> <para>Directory containing default files.</para> |