Harmonize formatting of login.defs and default/useradd variables.
Use an <option> tag.
* man/usermod.8.xml: Added reference to gshadow(5).
* man/login.defs.d/USERDEL_CMD.xml: Shorten the lines of the
USERDEL_CMD example.
+2009-05-21 Nicolas François <nicolas.francois@centraliens.net>
+
+ * man/usermod.8.xml, man/userdel.8.xml, man/useradd.8.xml:
+ Harmonize formatting of login.defs and default/useradd variables.
+ Use an <option> tag.
+ * man/usermod.8.xml: Added reference to gshadow(5).
+ * man/login.defs.d/USERDEL_CMD.xml: Shorten the lines of the
+ USERDEL_CMD example.
+
2009-05-21 Nicolas François <nicolas.francois@centraliens.net>
* src/su.c: Use a boolean instead of 0.
</para>
<para>
Example: <option>-K </option><replaceable>GID_MIN</replaceable>=<replaceable>100</replaceable>
- <option> -K </option><replaceable>GID_MAX</replaceable>=<replaceable>499</replaceable>
+ <option>-K </option><replaceable>GID_MAX</replaceable>=<replaceable>499</replaceable>
</para>
<para>
Note: <option>-K </option>
# Remove at jobs.
# Note that it will remove any jobs owned by the same UID,
# even if it was shared by a different username.
-find /var/spool/cron/atjobs -name "[^.]*" -type f -user $1 -exec rm {} \;
+AT_SPOOL_DIR=/var/spool/cron/atjobs
+find $AT_SPOOL_DIR -name "[^.]*" -type f -user $1 -delete \;
# Remove print jobs.
lprm $1
<para>
If not specified, <command>useradd</command> will use the
default inactivity period specified by the
- <option>INACTIVE</option> variable in the
+ <option>INACTIVE</option> variable in
<filename>/etc/default/useradd</filename>, or -1 by default.
</para>
</listitem>
</term>
<listitem>
<para>
- Overrides <filename>/etc/login.defs</filename> defaults (UID_MIN, UID_MAX, UMASK,
- PASS_MAX_DAYS and others).
+ Overrides <filename>/etc/login.defs</filename> defaults
+ (<option>UID_MIN</option>, <option>UID_MAX</option>,
+ <option>UMASK</option>, <option>PASS_MAX_DAYS</option>
+ and others).
<para>
</para>
Example: <option>-K </option><replaceable>PASS_MAX_DAYS</replaceable>=<replaceable>-1</replaceable>
<para>
Do not create a group with the same name as the user, but
add the user to the group specified by the <option>-g</option>
- option or by the GROUP variable in
+ option or by the <option>GROUP</option> variable in
<filename>/etc/default/useradd</filename>.
</para>
<para>
the user's home directory and mail spool, even if another
user uses the same home directory or if the mail spool is not
owned by the specified user. If
- <emphasis>USERGROUPS_ENAB</emphasis> is defined to <emphasis
+ <option>USERGROUPS_ENAB</option> is defined to <emphasis
remap='I'>yes</emphasis> in <filename>/etc/login.defs</filename>
and if a group exists with the same name as the deleted user,
then this group will be removed, even if it is still the primary
deleted manually.
</para>
<para>
- The mail spool is defined by the <emphasis>MAIL_DIR</emphasis>
+ The mail spool is defined by the <option>MAIL_DIR</option>
variable in the <filename>login.defs</filename> file.
</para>
</listitem>
<para>You may not remove any NIS attributes on a NIS client. This must
be performed on the NIS server.
</para>
- <para>If <emphasis>USERGROUPS_ENAB</emphasis> is defined to <emphasis
+ <para>If <option>USERGROUPS_ENAB</option> is defined to <emphasis
remap='I'>yes</emphasis> in <filename>/etc/login.defs</filename>,
<command>userdel</command> will delete the group with the same name
as the user. To avoid inconsistencies in the passwd and group
password), you should also set the
<replaceable>EXPIRE_DATE</replaceable> (for example to
<replaceable>99999</replaceable>, or to the
- <replaceable>EXPIRE</replaceable> value from
+ <option>EXPIRE</option> value from
<filename>/etc/default/useradd</filename>).
</para>
</listitem>
<para>Group account information.</para>
</listitem>
</varlistentry>
+ <varlistentry condition="gshadow">
+ <term><filename>/etc/gshadow</filename></term>
+ <listitem>
+ <para>Secure group account information.</para>
+ </listitem>
+ </varlistentry>
<varlistentry>
<term><filename>/etc/passwd</filename></term>
<listitem>