2007-10-07 11:47:33 +00:00
. \" Title: groupmod
. \" 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: System Management Commands
. \" Source: System Management Commands
. \"
2007-10-07 11:47:57 +00:00
.TH "GROUPMOD" "8" "07/30/2006" "System Management Commands" "System Management 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:47:57 +00:00
groupmod \- modify a group definition on the system
2007-10-07 11:46:25 +00:00
.SH "SYNOPSIS"
.HP 9
2007-10-07 11:47:57 +00:00
\fB groupmod\fR [\fI options\fR ] \fI GROUP\fR
2007-10-07 11:46:25 +00:00
.SH "DESCRIPTION"
.PP
2007-10-07 11:47:01 +00:00
The
\fB groupmod\fR
2007-10-07 11:47:57 +00:00
modifies the definition of the specified
\fI GROUP\fR
by modifying the appropriate entry in the group database.
2007-10-07 11:46:25 +00:00
.SH "OPTIONS"
.PP
2007-10-07 11:47:01 +00:00
The options which apply to the
\fB groupmod\fR
2007-10-07 11:46:52 +00:00
command are:
2007-10-07 11:47:33 +00:00
.TP 3 n
2007-10-07 11:47:57 +00:00
\fB \- g\fR , \fB \- \- gid\fR \fI GID\fR
Specify the new group ID for the
\fI GROUP\fR . The numerical value of the
\fI GID\fR
must be a non\- negative decimal integer. This value must be unique, unless the
2007-10-07 11:47:01 +00:00
\fB \- o\fR
2007-10-07 11:47:57 +00:00
option is used. Values between 0 and 999 are typically reserved for system groups. Any files which the old group ID is the file group ID must have the file group ID changed manually.
2007-10-07 11:47:33 +00:00
.TP 3 n
2007-10-07 11:47:57 +00:00
\fB \- h\fR , \fB \- \- help\fR
Display help message and exit.
.TP 3 n
\fB \- n\fR , \fB \- \- new\- name\fR \fI NEW_GROUP\fR
2007-10-07 11:47:01 +00:00
The name of the group will be changed from
2007-10-07 11:47:57 +00:00
\fI GROUP\fR
2007-10-07 11:47:01 +00:00
to
2007-10-07 11:47:57 +00:00
\fI NEW_GROUP\fR
name.
.TP 3 n
\fB \- o\fR , \fB \- \- non\- unique\fR
When used with the
\fB \- g\fR
option allow to change the group
\fI GID\fR
to non\- unique value.
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 "EXIT VALUES"
.PP
2007-10-07 11:47:01 +00:00
The
\fB groupmod\fR
command exits with the following values:
2007-10-07 11:47:33 +00:00
.TP 3 n
2007-10-07 11:46:25 +00:00
\fI 0\fR
success
2007-10-07 11:47:33 +00:00
.TP 3 n
2007-10-07 11:46:25 +00:00
\fI 2\fR
invalid command syntax
2007-10-07 11:47:33 +00:00
.TP 3 n
2007-10-07 11:46:25 +00:00
\fI 3\fR
invalid argument to option
2007-10-07 11:47:33 +00:00
.TP 3 n
2007-10-07 11:46:25 +00:00
\fI 4\fR
specified group doesn't exist
2007-10-07 11:47:33 +00:00
.TP 3 n
2007-10-07 11:46:25 +00:00
\fI 6\fR
specified group doesn't exist
2007-10-07 11:47:33 +00:00
.TP 3 n
2007-10-07 11:46:25 +00:00
\fI 9\fR
group name already in use
2007-10-07 11:47:33 +00:00
.TP 3 n
2007-10-07 11:46:25 +00:00
\fI 10\fR
2007-10-07 11:46:52 +00:00
can't update group file
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 chfn\fR (1),
\fB chsh\fR (1),
\fB passwd\fR (1),
\fB gpasswd\fR (8),
\fB groupadd\fR (8),
\fB groupdel\fR (8),
\fB useradd\fR (8),
\fB userdel\fR (8),
\fB usermod\fR (8).