From 93acdeb8ff7f3a8200380c10d770716c79fcd934 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sat, 27 Oct 2007 14:00:31 +0000 Subject: [PATCH] Document all gpasswd.1 options separately. This clarify the gpasswd.1 manpages (reported in debian bug #445480). --- ChangeLog | 5 ++ man/gpasswd.1.xml | 138 ++++++++++++++++++++++++++++++++-------------- 2 files changed, 101 insertions(+), 42 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3b1ac199..2ba088c0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-10-27 Nicolas François + + * man/gpasswd.1.xml: Describe the options separately in the + OPTIONS section. Simplify the synopsis. + 2007-10-27 Nicolas François * README, po/Makevars: Update contact information. diff --git a/man/gpasswd.1.xml b/man/gpasswd.1.xml index b4caa6d3..055c7cb8 100644 --- a/man/gpasswd.1.xml +++ b/man/gpasswd.1.xml @@ -14,34 +14,13 @@ gpasswd + + option + group - - gpasswd - -a user - group - - - gpasswd - -d user - group - - - gpasswd - -R group - - - gpasswd - -r group - - - gpasswd - -A user, - -M user, - group - @@ -51,10 +30,18 @@ /etc/group file (and /etc/gshadow file if compiled with SHADOWGRP defined). Every group can have administrators, members and a password. - System administrator can use option to define - group administrator(s) and option to define + System administrator can use the option to define + group administrator(s) and the option to define members and has all rights of group administrators and members. + + gpasswd called by a group administrator with a group + name only prompts for the group password. If a password is set the + members can still + newgrp1 + without a password, and non-members must supply the + password. + Notes about group passwords @@ -70,23 +57,90 @@ OPTIONS - Group administrator can add and delete users using - and options respectively. Administrators can use - option to remove group password. When no password - is set only group members can use newgrp to join - the group. Option disables access via a password - to the group through newgrp command (however - members will still be able to switch to this group). - - - - gpasswd called by a group administrator with group - name only prompts for the group password. If password is set the - members can still - newgrp1 - without a password, non-members must supply the - password. + Except for the and options, + the options cannot be combined. + The options which apply to the gpasswd command are: + + + + user + + + + Add the user to the named + group. + + + + + + + + user + + + + Remove the user from the named + group. + + + + + + + + + + + + Remove the password from the named group. + Only group members will be allowed to use + newgrp to join the named + group. + + + + + + + + + + + + Restrict the access to the named group. + Only group members will be allowed to use + newgrp to join the named + group. + + + + + + + + user,... + + + + Set the list of administrative users. + + + + + + + + user,... + + + + Set the list of group members. + + + +