1GPASSWD(1)                       User Commands                      GPASSWD(1)
2
3
4

NAME

6       gpasswd - administer /etc/group and /etc/gshadow
7

SYNOPSIS

9       gpasswd [option] group
10

DESCRIPTION

12       The gpasswd command is used to administer /etc/group, and /etc/gshadow.
13       Every group can have administrators, members and a password.
14
15       System administrators can use the -A option to define group
16       administrator(s) and the -M option to define members. They have all
17       rights of group administrators and members.
18
19       gpasswd called by a group administrator with a group name only prompts
20       for the new password of the group.
21
22       If a password is set the members can still use newgrp(1) without a
23       password, and non-members must supply the password.
24
25   Notes about group passwords
26       Group passwords are an inherent security problem since more than one
27       person is permitted to know the password. However, groups are a useful
28       tool for permitting co-operation between different users.
29

OPTIONS

31       Except for the -A and -M options, the options cannot be combined.
32
33       The options which apply to the gpasswd command are:
34
35       -a, --add user
36           Add the user to the named group.
37
38       -d, --delete user
39           Remove the user from the named group.
40
41       -r, --remove-password
42           Remove the password from the named group. Only group members will
43           be allowed to use newgrp to join the named group.
44
45       -R, --restrict
46           Restrict the access to the named group. Only group members will be
47           allowed to use newgrp to join the named group.
48
49       -A, --administrators user,...
50           Set the list of administrative users.
51
52       -M, --members user,...
53           Set the list of group members.
54

CAVEATS

56       This tool only operates on the /etc/group and /etc/gshadow files.  Thus
57       you cannot change any NIS or LDAP group. This must be performed on the
58       corresponding server.
59

CONFIGURATION

61       The following configuration variables in /etc/login.defs change the
62       behavior of this tool:
63
64       ENCRYPT_METHOD (string)
65           This defines the system default encryption algorithm for encrypting
66           passwords (if no algorithm are specified on the command line).
67
68           It can take one of these values:
69
70           ·   DES (default)
71
72           ·   MD5
73
74           ·   SHA256
75
76           ·   SHA512
77
78               Note: this parameter overrides the MD5_CRYPT_ENAB variable.
79
80           MAX_MEMBERS_PER_GROUP (number)
81               Maximum members per group entry. When the maximum is reached, a
82               new group entry (line) is started in /etc/group (with the same
83               name, same password, and same GID).
84
85               The default value is 0, meaning that there are no limits in the
86               number of members in a group.
87
88               This feature (split group) permits to limit the length of lines
89               in the group file. This is useful to make sure that lines for
90               NIS groups are not larger than 1024 characters.
91
92               If you need to enforce such limit, you can use 25.
93
94               Note: split groups may not be supported by all tools (even in
95               the Shadow toolsuite). You should not use this variable unless
96               you really need it.
97
98           MD5_CRYPT_ENAB (boolean)
99               Indicate if passwords must be encrypted using the MD5-based
100               algorithm. If set to yes, new passwords will be encrypted using
101               the MD5-based algorithm compatible with the one used by recent
102               releases of FreeBSD. It supports passwords of unlimited length
103               and longer salt strings. Set to no if you need to copy
104               encrypted passwords to other systems which don´t understand the
105               new algorithm. Default is no.
106
107               This variable is superceded by the ENCRYPT_METHOD variable or
108               by any command line option used to configure the encryption
109               algorithm.
110
111               This variable is deprecated. You should use ENCRYPT_METHOD.
112
113           SHA_CRYPT_MIN_ROUNDS (number), SHA_CRYPT_MAX_ROUNDS (number)
114               When ENCRYPT_METHOD is set to SHA256 or SHA512, this defines
115               the number of SHA rounds used by the encryption algorithm by
116               default (when the number of rounds is not specified on the
117               command line).
118
119               With a lot of rounds, it is more difficult to brute forcing the
120               password. But note also that more CPU resources will be needed
121               to authenticate users.
122
123               If not specified, the libc will choose the default number of
124               rounds (5000).
125
126               The values must be inside the 1000-999999999 range.
127
128               If only one of the SHA_CRYPT_MIN_ROUNDS or SHA_CRYPT_MAX_ROUNDS
129               values is set, then this value will be used.
130
131               If SHA_CRYPT_MIN_ROUNDS > SHA_CRYPT_MAX_ROUNDS, the highest
132               value will be used.
133

FILES

135       /etc/group
136           Group account information.
137
138       /etc/gshadow
139           Secure group account information.
140

SEE ALSO

142       newgrp(1), groupadd(8), groupdel(8), groupmod(8), grpck(8), group(5),
143       gshadow(5).
144
145
146
147User Commands                     07/24/2009                        GPASSWD(1)
Impressum