xref: /openbsd-src/usr.sbin/user/groupmod.8 (revision b2ea75c1b17e1a9a339660e7ed45cd24946b230e)
1.\" $OpenBSD: groupmod.8,v 1.7 2001/08/02 18:37:35 mpech Exp $ */
2.\" $NetBSD: groupmod.8,v 1.4 2000/02/28 05:10:56 enami Exp $ */
3.\"
4.\"
5.\" Copyright (c) 1999 Alistair G. Crooks.  All rights reserved.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions
9.\" are met:
10.\" 1. Redistributions of source code must retain the above copyright
11.\"    notice, this list of conditions and the following disclaimer.
12.\" 2. Redistributions in binary form must reproduce the above copyright
13.\"    notice, this list of conditions and the following disclaimer in the
14.\"    documentation and/or other materials provided with the distribution.
15.\" 3. All advertising materials mentioning features or use of this software
16.\"    must display the following acknowledgement:
17.\"	This product includes software developed by Alistair G. Crooks.
18.\" 4. The name of the author may not be used to endorse or promote
19.\"    products derived from this software without specific prior written
20.\"    permission.
21.\"
22.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
23.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
24.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
26.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
28.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
30.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
31.\" NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32.\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33.\"
34.\"
35.Dd November 30, 1999
36.Dt GROUPMOD 8
37.Os
38.Sh NAME
39.Nm groupmod
40.Nd modify an existing group on the system
41.Sh SYNOPSIS
42.Nm groupmod
43.Op Fl g Ar gid
44.Op Fl n Ar newname
45.Op Fl o
46.Op Fl v
47.Ar group
48.Sh DESCRIPTION
49The
50.Nm
51utility adds a group to the system.
52The options are as follows:
53.Bl -tag -width Ds
54.It Fl g Ar gid
55gives the numeric group identifier to be used for the new group.
56.It Fl n Ar new-group-name
57gives the new name which the group shall have.
58.It Fl o
59allow the new group to have a gid which is already in use for another group.
60.It Fl v
61enables verbose mode - explain the commands as they are executed.
62.El
63.Pp
64The
65.Nm
66utility exits 0 on success, and >0 if an error occurs.
67.Sh SEE ALSO
68.Xr group 5 ,
69.Xr group 8 ,
70.Xr user 8
71.Sh HISTORY
72The
73.Nm
74utility first appeared in
75.Ox 2.7 .
76.Sh AUTHORS
77The
78.Nm
79utility was written by Alistair G. Crooks (agc@netbsd.org).
80