gpasswd1User Commandsgpasswd
administer the /etc/groupand /etc/gshadow
filesfilegpasswdoptiongroupDESCRIPTION
The gpasswd command is used to administer
/etc/group,
and /etc/gshadow.
Every group can have
administrators,
members and a password.
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 administratora system administrator
with a group name only prompts for the new password of the
group.
If a password is set the members can still newgrp1 without a password, and non-members must supply the
password.
Notes about group passwords
Group passwords are an inherent security problem since more than one
person is permitted to know the password. However, groups are a
useful tool for permitting co-operation between different users.
OPTIONS
Except for the and options,
the options cannot be combined.
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.
CAVEATS
This tool only operates on the /etc/group and /etc/gshadow
files.file.
Thus you cannot change any NIS or LDAP group. This must be performed
on the corresponding server.
FILES/etc/groupGroup account information./etc/gshadowSecure group account information.SEE ALSOnewgrp1,
groupadd8,
groupdel8,
groupmod8,
grpck8,
group5,
gshadow5.