diff options
author | Denys Vlasenko | 2009-07-13 01:27:47 +0200 |
---|---|---|
committer | Denys Vlasenko | 2009-07-13 01:27:47 +0200 |
commit | 2907e7974924e7e8f1a64874b5c3cb48ebd25d5d (patch) | |
tree | e57cd8ee87d94fcad9c0080703e0fd11886ac423 /loginutils/addgroup.c | |
parent | 189f74d0f2760d3da1a05cba75653dade4c8a9c3 (diff) | |
download | busybox-2907e7974924e7e8f1a64874b5c3cb48ebd25d5d.zip busybox-2907e7974924e7e8f1a64874b5c3cb48ebd25d5d.tar.gz |
add comment about /etc/gshadow, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'loginutils/addgroup.c')
-rw-r--r-- | loginutils/addgroup.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/loginutils/addgroup.c b/loginutils/addgroup.c index e49278e..215e4a9 100644 --- a/loginutils/addgroup.c +++ b/loginutils/addgroup.c @@ -79,7 +79,22 @@ static void new_group(char *group, gid_t gid) if (ENABLE_FEATURE_CLEAN_UP) free(p); #if ENABLE_FEATURE_SHADOWPASSWDS - /* Ignore errors: if file is missing we suppose admin doesn't want it */ + /* /etc/gshadow fields: + * 1. Group name. + * 2. Encrypted password. + * If set, non-members of the group can join the group + * by typing the password for that group using the newgrp command. + * If the value is of this field ! then no user is allowed + * to access the group using the newgrp command. A value of !! + * is treated the same as a value of ! only it indicates + * that a password has never been set before. If the value is null, + * only group members can log into the group. + * 3. Group administrators (comma delimited list). + * Group members listed here can add or remove group members + * using the gpasswd command. + * 4. Group members (comma delimited list). + */ + /* Ignore errors: if file is missing we assume admin doesn't want it */ update_passwd(bb_path_gshadow_file, group, "!::", NULL); #endif } |