diff --git a/ChangeLog b/ChangeLog index 168308af..8ea8d6ee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,15 @@ -2011-11-16 Nicolas François +2011-11-19 Nicolas François + + * 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 * src/gpasswd.c: Change of group password enforces gshadow password. Set /etc/group password to "x". diff --git a/man/groupadd.8.xml b/man/groupadd.8.xml index 2f07e6e1..caded6be 100644 --- a/man/groupadd.8.xml +++ b/man/groupadd.8.xml @@ -99,9 +99,12 @@ The numerical value of the group's ID. This value must be unique, unless the 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 and + greater than every other group. + + + See also the option and the + description. diff --git a/man/groupmod.8.xml b/man/groupmod.8.xml index 640250e2..f50cdf66 100644 --- a/man/groupmod.8.xml +++ b/man/groupmod.8.xml @@ -86,8 +86,7 @@ The value of GID must be a non-negative decimal integer. This value must be unique, unless the - option is used. Values between 0 and 999 are - typically reserved for system groups. + option is used. Users who use the group as primary group will be updated to @@ -99,6 +98,12 @@ GROUP, must have their group ID changed manually. + + No checks will be performed with regard to the + , , + , or + from /etc/login.defs. + @@ -195,6 +200,12 @@ Secure group account information. + + /etc/login.defs + + Shadow password suite configuration. + + /etc/passwd @@ -276,6 +287,9 @@ groupdel8 , + + login.defs5 + , useradd8 , diff --git a/man/login.defs.d/GID_MAX.xml b/man/login.defs.d/GID_MAX.xml index fdf18e9b..639eafb0 100644 --- a/man/login.defs.d/GID_MAX.xml +++ b/man/login.defs.d/GID_MAX.xml @@ -37,5 +37,9 @@ useradd, groupadd, or newusers. + + The default value for (resp. + ) is 1000 (resp. 60000). + diff --git a/man/login.defs.d/SYS_GID_MAX.xml b/man/login.defs.d/SYS_GID_MAX.xml index 547139a6..4a9ed28b 100644 --- a/man/login.defs.d/SYS_GID_MAX.xml +++ b/man/login.defs.d/SYS_GID_MAX.xml @@ -35,5 +35,9 @@ useradd, groupadd, or newusers. + + The default value for (resp. + ) is 101 (resp. -1). + diff --git a/man/login.defs.d/SYS_UID_MAX.xml b/man/login.defs.d/SYS_UID_MAX.xml index 2d82563a..3ca6cee2 100644 --- a/man/login.defs.d/SYS_UID_MAX.xml +++ b/man/login.defs.d/SYS_UID_MAX.xml @@ -34,5 +34,9 @@ Range of user IDs used for the creation of system users by useradd or newusers. + + The default value for (resp. + ) is 101 (resp. -1). + diff --git a/man/login.defs.d/UID_MAX.xml b/man/login.defs.d/UID_MAX.xml index c3054ea1..77cf41f9 100644 --- a/man/login.defs.d/UID_MAX.xml +++ b/man/login.defs.d/UID_MAX.xml @@ -36,5 +36,9 @@ Range of user IDs used for the creation of regular users by useradd or newusers. + + The default value for (resp. + ) is 1000 (resp. 60000). + diff --git a/man/useradd.8.xml b/man/useradd.8.xml index d1d1f1c1..ff165b12 100644 --- a/man/useradd.8.xml +++ b/man/useradd.8.xml @@ -472,8 +472,12 @@ The numerical value of the user's ID. This value must be unique, unless the 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 and greater + than every other user. + + + See also the option and the + description. diff --git a/man/usermod.8.xml b/man/usermod.8.xml index 3a85b86d..f56d1713 100644 --- a/man/usermod.8.xml +++ b/man/usermod.8.xml @@ -331,8 +331,7 @@ This value must be unique, unless the option is used. The value must be - non-negative. Values between 0 and 999 are typically reserved - for system accounts. + non-negative. 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. + + No checks will be performed with regard to the + , , + , or + from /etc/login.defs. + @@ -430,6 +435,12 @@ Secure group account information. + + /etc/login.defs + + Shadow password suite configuration. + + /etc/passwd