* man/useradd.8.xml, man/groupadd.8.xml, man/usermod.8.xml,

man/groupmod.8.xml: Avoid hardcoded values, and reference instead
	the configuration options (e.g. UID_MIN)
	* man/groupmod.8.xml, man/usermod.8.xml: Add missing reference to
	login.defs
	* man/login.defs.d/UID_MAX.xml, man/login.defs.d/SYS_UID_MAX.xml,
	man/login.defs.d/GID_MAX.xml, man/login.defs.d/SYS_GID_MAX.xml:
	Document the default values.
This commit is contained in:
nekral-guest 2011-11-19 14:33:53 +00:00
parent 2f1e13ff7a
commit 61bb0aa943
9 changed files with 69 additions and 10 deletions

View File

@ -1,4 +1,15 @@
2011-11-16 Nicolas François <nicolas.francois@centraliens.net>
2011-11-19 Nicolas François <nicolas.francois@centraliens.net>
* man/useradd.8.xml, man/groupadd.8.xml, man/usermod.8.xml,
man/groupmod.8.xml: Avoid hardcoded values, and reference instead
the configuration options (e.g. UID_MIN)
* man/groupmod.8.xml, man/usermod.8.xml: Add missing reference to
login.defs
* man/login.defs.d/UID_MAX.xml, man/login.defs.d/SYS_UID_MAX.xml,
man/login.defs.d/GID_MAX.xml, man/login.defs.d/SYS_GID_MAX.xml:
Document the default values.
2011-11-19 Nicolas François <nicolas.francois@centraliens.net>
* src/gpasswd.c: Change of group password enforces gshadow
password. Set /etc/group password to "x".

View File

@ -99,9 +99,12 @@
<para>The numerical value of the group's ID. This value must be
unique, unless the <option>-o</option> option is used. The value
must be non-negative. The default is to use the smallest ID
value greater than 999 and greater than every other group.
Values between 0 and 999 are typically reserved for system
accounts.
value greater than or equal to <option>GID_MIN</option> and
greater than every other group.
</para>
<para>
See also the <option>-r</option> option and the
<option>GID_MAX</option> description.
</para>
</listitem>
</varlistentry>

View File

@ -86,8 +86,7 @@
The value of
<replaceable>GID</replaceable> must be a non-negative decimal
integer. This value must be unique, unless the
<option>-o</option> option is used. Values between 0 and 999 are
typically reserved for system groups.
<option>-o</option> option is used.
</para>
<para>
Users who use the group as primary group will be updated to
@ -99,6 +98,12 @@
<replaceable>GROUP</replaceable>, must have their group ID
changed manually.
</para>
<para>
No checks will be performed with regard to the
<option>GID_MIN</option>, <option>GID_MAX</option>,
<option>SYS_GID_MIN</option>, or <option>SYS_GID_MAX</option>
from <filename>/etc/login.defs</filename>.
</para>
</listitem>
</varlistentry>
<varlistentry>
@ -195,6 +200,12 @@
<para>Secure group account information.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><filename>/etc/login.defs</filename></term>
<listitem>
<para>Shadow password suite configuration.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><filename>/etc/passwd</filename></term>
<listitem>
@ -276,6 +287,9 @@
<citerefentry>
<refentrytitle>groupdel</refentrytitle><manvolnum>8</manvolnum>
</citerefentry>,
<citerefentry>
<refentrytitle>login.defs</refentrytitle><manvolnum>5</manvolnum>
</citerefentry>,
<citerefentry>
<refentrytitle>useradd</refentrytitle><manvolnum>8</manvolnum>
</citerefentry>,

View File

@ -37,5 +37,9 @@
<command>useradd</command>, <command>groupadd</command>, or
<command>newusers</command>.
</para>
<para>
The default value for <option>GID_MIN</option> (resp.
<option>GID_MAX</option>) is 1000 (resp. 60000).
</para>
</listitem>
</varlistentry>

View File

@ -35,5 +35,9 @@
<command>useradd</command>, <command>groupadd</command>, or
<command>newusers</command>.
</para>
<para>
The default value for <option>SYS_GID_MIN</option> (resp.
<option>SYS_GID_MAX</option>) is 101 (resp. <option>GID_MIN</option>-1).
</para>
</listitem>
</varlistentry>

View File

@ -34,5 +34,9 @@
Range of user IDs used for the creation of system users by
<command>useradd</command> or <command>newusers</command>.
</para>
<para>
The default value for <option>SYS_UID_MIN</option> (resp.
<option>SYS_UID_MAX</option>) is 101 (resp. <option>UID_MIN</option>-1).
</para>
</listitem>
</varlistentry>

View File

@ -36,5 +36,9 @@
Range of user IDs used for the creation of regular users by
<command>useradd</command> or <command>newusers</command>.
</para>
<para>
The default value for <option>UID_MIN</option> (resp.
<option>UID_MAX</option>) is 1000 (resp. 60000).
</para>
</listitem>
</varlistentry>

View File

@ -472,8 +472,12 @@
The numerical value of the user's ID. This value must be unique,
unless the <option>-o</option> option is used. The value must be
non-negative. The default is to use the smallest ID value
greater than 999 and greater than every other user. Values
between 0 and 999 are typically reserved for system accounts.
greater than or equal to <option>UID_MIN</option> and greater
than every other user.
</para>
<para>
See also the <option>-r</option> option and the
<option>UID_MAX</option> description.
</para>
</listitem>
</varlistentry>

View File

@ -331,8 +331,7 @@
<para>
This value must be unique,
unless the <option>-o</option> option is used. The value must be
non-negative. Values between 0 and 999 are typically reserved
for system accounts.
non-negative.
</para>
<para>
The user's mailbox, and any files which the user owns and which are
@ -343,6 +342,12 @@
The ownership of files outside of the user's home directory
must be fixed manually.
</para>
<para>
No checks will be performed with regard to the
<option>UID_MIN</option>, <option>UID_MAX</option>,
<option>SYS_UID_MIN</option>, or <option>SYS_UID_MAX</option>
from <filename>/etc/login.defs</filename>.
</para>
</listitem>
</varlistentry>
<varlistentry>
@ -430,6 +435,12 @@
<para>Secure group account information.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><filename>/etc/login.defs</filename></term>
<listitem>
<para>Shadow password suite configuration.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><filename>/etc/passwd</filename></term>
<listitem>