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 authored and Serge Hallyn committed 2021-10-15 16:20:52 -05:00
1 parent d7e2bd6fe1
commit 7e2b522a15
2 files changed
+38 -3

No files matched your search

+6
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>