Added a new configurable LOG_INIT to useradd

In some circumstances I want the default behaviour of useradd to
not add user entries to the lastlog and faillog databases. Allowing
this options behaviour to be controlled by the config file
/etc/default/useradd.
This commit is contained in:
Andy Zaugg
2021-09-20 20:42:21 -07:00
committed by Serge Hallyn
parent d7e2bd6fe1
commit 7e2b522a15
2 changed files with 38 additions and 3 deletions

View File

@@ -343,6 +343,12 @@
databases are reset to avoid reusing the entry from a previously
deleted user.
</para>
<para>
If this option is not specified, <command>useradd</command>
will also consult the variable <option>LOG_INIT</option> in
the <filename>/etc/default/useradd</filename> if set to no
the user will not be added to the lastlog and faillog databases.
</para>
</listitem>
</varlistentry>
<varlistentry>