2007-10-07 17:15:49 +05:30
|
|
|
.\"$Id: gpasswd.1,v 1.10 2004/11/02 19:28:31 kloczek Exp $
|
2007-10-07 17:15:14 +05:30
|
|
|
.\" Copyright 1996, Rafal Maszkowski <rzm@pdi.net>
|
2007-10-07 17:14:44 +05:30
|
|
|
.\" All rights reserved. You can redistribute this man page and/or
|
|
|
|
.\" modify it under the terms of the GNU General Public License as
|
|
|
|
.\" published by the Free Software Foundation; either version 2 of the
|
|
|
|
.\" License, or (at your option) any later version.
|
2007-10-07 17:15:14 +05:30
|
|
|
.\"
|
2007-10-07 17:14:44 +05:30
|
|
|
.TH GPASSWD 1
|
|
|
|
.SH NAME
|
|
|
|
gpasswd \- administer the /etc/group file
|
|
|
|
.br
|
|
|
|
.SH SYNOPSIS
|
2007-10-07 17:15:23 +05:30
|
|
|
.TP 6
|
2007-10-07 17:15:14 +05:30
|
|
|
\fBgpasswd \fIgroup\fR
|
2007-10-07 17:14:44 +05:30
|
|
|
.br
|
2007-10-07 17:15:14 +05:30
|
|
|
\fBgpasswd -a \fIuser\fR \fIgroup\fR
|
2007-10-07 17:14:44 +05:30
|
|
|
.br
|
2007-10-07 17:15:14 +05:30
|
|
|
\fBgpasswd -d \fIuser\fR \fIgroup\fR
|
2007-10-07 17:14:44 +05:30
|
|
|
.br
|
2007-10-07 17:15:14 +05:30
|
|
|
\fBgpasswd -R \fIgroup\fR
|
2007-10-07 17:14:44 +05:30
|
|
|
.br
|
2007-10-07 17:15:14 +05:30
|
|
|
\fBgpasswd -r \fIgroup\fR
|
2007-10-07 17:14:44 +05:30
|
|
|
.br
|
2007-10-07 17:15:14 +05:30
|
|
|
\fBgpasswd\fR [\fB-A \fIuser\fR,...] [\fB-M\fR \fIuser\fR,...] \fIgroup\fR
|
2007-10-07 17:14:44 +05:30
|
|
|
.SH DESCRIPTION
|
2007-10-07 17:15:23 +05:30
|
|
|
\fBgpasswd\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 option to
|
|
|
|
define members and has all rights of group administrators and members.
|
2007-10-07 17:15:49 +05:30
|
|
|
.SH OPTIONS
|
2007-10-07 17:14:44 +05:30
|
|
|
.PP
|
2007-10-07 17:15:23 +05:30
|
|
|
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 \fBnewgrp\fR to
|
|
|
|
join the group. Option \fB-R\fR disables access to the group through
|
|
|
|
\fBnewgrp\fR command.
|
2007-10-07 17:14:44 +05:30
|
|
|
.PP
|
2007-10-07 17:14:51 +05:30
|
|
|
\fBgpasswd\fR called by a group administrator with group name only prompts
|
2007-10-07 17:14:44 +05:30
|
|
|
for the group password. If password is set the members can still
|
|
|
|
.BR newgrp (1)
|
|
|
|
without a password, non-members must supply the password.
|
|
|
|
.SH FILES
|
2007-10-07 17:15:23 +05:30
|
|
|
\fI/etc/group\fR \- group information
|
2007-10-07 17:14:44 +05:30
|
|
|
.br
|
2007-10-07 17:15:23 +05:30
|
|
|
\fI/etc/gshadow\fR \- shadow group information
|
2007-10-07 17:14:44 +05:30
|
|
|
.SH SEE ALSO
|
|
|
|
.BR newgrp (1),
|
|
|
|
.BR groupadd (8),
|
|
|
|
.BR groupdel (8),
|
|
|
|
.BR groupmod (8),
|
|
|
|
.BR grpck (8)
|
2007-10-07 17:15:14 +05:30
|
|
|
.SH AUTHOR
|
|
|
|
Rafal Maszkowski <rzm@pdi.net>
|