2007-10-07 11:47:33 +00:00
. \" Title: gpasswd
. \" Author:
. \" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
2007-10-07 11:47:57 +00:00
. \" Date: 07/30/2006
2007-10-07 11:47:33 +00:00
. \" Manual: User Commands
. \" Source: User Commands
. \"
2007-10-07 11:47:57 +00:00
.TH "GPASSWD" "1" "07/30/2006" "User Commands" "User Commands"
2007-10-07 11:46:52 +00:00
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
.SH "NAME"
2007-10-07 11:44:44 +00:00
gpasswd \- administer the /etc/group file
2007-10-07 11:46:25 +00:00
.SH "SYNOPSIS"
.HP 8
2007-10-07 11:46:07 +00:00
\fB gpasswd\fR \fI group\fR
2007-10-07 11:46:25 +00:00
.HP 8
\fB gpasswd\fR \- a\ \fI user\fR \fI group\fR
.HP 8
\fB gpasswd\fR \- d\ \fI user\fR \fI group\fR
.HP 8
\fB gpasswd\fR \- R\ \fI group\fR
.HP 8
\fB gpasswd\fR \- r\ \fI group\fR
.HP 8
\fB gpasswd\fR [\- A\ \fI user,\fR ...] [\- M\ \fI user,\fR ...] \fI group\fR
.SH "DESCRIPTION"
2007-10-07 11:44:44 +00:00
.PP
2007-10-07 11:47:33 +00:00
2007-10-07 11:47:01 +00:00
\fB gpasswd\fR
is used to administer the
\fI /etc/group\fR
file (and
\fI /etc/gshadow\fR
file if compiled with SHADOWGRP defined). Every group can have administrators, members and a password. System administrator can use
\fB \- A\fR
option to define group administrator(s) and
\fB \- M\fR
2007-10-07 11:46:52 +00:00
option to define members and has all rights of group administrators and members.
2007-10-07 11:47:11 +00:00
.SS "Notes about group passwords"
.PP
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.
2007-10-07 11:47:33 +00:00
. \" end of SS subsection "Notes about group passwords"
2007-10-07 11:46:25 +00:00
.SH "OPTIONS"
2007-10-07 11:44:44 +00:00
.PP
2007-10-07 11:47:01 +00:00
Group administrator can add and delete users using
\fB \- a\fR
and
\fB \- d\fR
options respectively. Administrators can use
\fB \- r\fR
option to remove group password. When no password is set only group members can use
\fB newgrp\fR
to join the group. Option
\fB \- R\fR
disables access via a password to the group through
\fB newgrp\fR
2007-10-07 11:46:52 +00:00
command (however members will still be able to switch to this group).
2007-10-07 11:46:25 +00:00
.PP
2007-10-07 11:47:33 +00:00
2007-10-07 11:47:01 +00:00
\fB gpasswd\fR
called by a group administrator with group name only prompts for the group password. If password is set the members can still
\fB newgrp\fR (1)
2007-10-07 11:46:52 +00:00
without a password, non\- members must supply the password.
2007-10-07 11:46:25 +00:00
.SH "FILES"
2007-10-07 11:47:33 +00:00
.TP 3 n
2007-10-07 11:46:25 +00:00
\fI /etc/group\fR
2007-10-07 11:47:33 +00:00
Group account information.
.TP 3 n
2007-10-07 11:46:25 +00:00
\fI /etc/gshadow\fR
2007-10-07 11:47:33 +00:00
Secure group account information.
2007-10-07 11:46:25 +00:00
.SH "SEE ALSO"
.PP
2007-10-07 11:47:33 +00:00
2007-10-07 11:47:01 +00:00
\fB newgrp\fR (1),
\fB gshadow\fR (5),
\fB groupadd\fR (8),
\fB groupdel\fR (8),
\fB groupmod\fR (8),
\fB grpck\fR (8),
\fB group\fR (5).