From 3a091d5def00e58e06c61926e9253c49574ad1ea Mon Sep 17 00:00:00 2001 From: Markus Hiereth Date: Sun, 6 Mar 2022 18:48:22 -0600 Subject: [PATCH] Improve groupadd and useradd manpage Signed-off-by: Serge Hallyn --- man/groupadd.8.xml | 57 ++++++++++++++++++++++++++-------------------- man/useradd.8.xml | 14 +++++------- 2 files changed, 38 insertions(+), 33 deletions(-) diff --git a/man/groupadd.8.xml b/man/groupadd.8.xml index 11bbe505..6e7c387e 100644 --- a/man/groupadd.8.xml +++ b/man/groupadd.8.xml @@ -48,10 +48,10 @@ groupadd - options + OPTIONS - group + NEWGROUP @@ -63,6 +63,15 @@ values from the system. The new group will be entered into the system files as needed. + + Groupnames must start with a lower case letter or an underscore, + followed by lower case letters, digits, underscores, or dashes. + They can end with a dollar sign. + In regular expression terms: [a-z_][a-z0-9_-]*[$]? + + + Groupnames may only be up to &GROUP_NAME_MAX_LENGTH; characters long. + @@ -91,8 +100,8 @@ ,  GID - The numerical value of the group's ID. This value must be - unique, unless the option is used. The value + The numerical value of the group's ID. GID + 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 or equal to and greater than every other group. @@ -135,7 +144,10 @@ - This option permits to add a group with a non-unique GID. + permits the creation of a group with an already used + numerical ID. As a result, for this + GID, the mapping towards group + NEWGROUP may not be unique. @@ -145,10 +157,16 @@ - The encrypted password, as returned by - crypt3 - . The default is to disable the password. + defines an initial password for the group account. PASSWORD is expected to + be encrypted, as returned by crypt + 3. + + Without this option, the group account will be locked and + with no password defined, i.e. a single exclamation mark + in the respective field of ths system account file + /etc/group or /etc/gshadow. + Note: This option is not recommended because the password (or encrypted password) will @@ -194,14 +212,12 @@ - Apply changes in the PREFIX_DIR - directory and use the configuration files from the - PREFIX_DIR directory. - This option does not chroot and is intended for preparing - a cross-compilation target. - Some limitations: NIS and LDAP users/groups are not verified. - PAM authentication is using the host files. - No SELINUX support. + Apply changes to configuration files under the root filesystem + found under the directory PREFIX_DIR. + This option does not chroot and is intended for preparing a cross-compilation + target. Some limitations: NIS and LDAP users/groups are + not verified. PAM authentication is using the host files. + No SELINUX support. @@ -264,15 +280,6 @@ CAVEATS - - Groupnames must start with a lower case letter or an underscore, - followed by lower case letters, digits, underscores, or dashes. - They can end with a dollar sign. - In regular expression terms: [a-z_][a-z0-9_-]*[$]? - - - Groupnames may only be up to &GROUP_NAME_MAX_LENGTH; characters long. - You may not add a NIS or LDAP group. This must be performed on the corresponding server. diff --git a/man/useradd.8.xml b/man/useradd.8.xml index e2979b66..da2c12c5 100644 --- a/man/useradd.8.xml +++ b/man/useradd.8.xml @@ -484,14 +484,12 @@ - Apply changes in the PREFIX_DIR - directory and use the configuration files from the - PREFIX_DIR directory. - This option does not chroot and is intended for preparing - a cross-compilation target. - Some limitations: NIS and LDAP users/groups are not verified. - PAM authentication is using the host files. - No SELINUX support. + Apply changes to configuration files under the root filesystem + found under the directory PREFIX_DIR. + This option does not chroot and is intended for preparing a cross-compilation + target. Some limitations: NIS and LDAP users/groups are + not verified. PAM authentication is using the host files. + No SELINUX support.