1996-11-04 17:21:11 +00:00
|
|
|
.\" Copyright (c) 1996 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
1997-02-22 16:15:28 +00:00
|
|
|
.\" $Id$
|
1996-11-04 17:21:11 +00:00
|
|
|
|
|
|
|
.Dd Oct, 30, 1996
|
|
|
|
.Dt ADDGROUP 8
|
|
|
|
.Os FreeBSD 2.2
|
|
|
|
.Sh NAME
|
|
|
|
.Nm addgroup
|
|
|
|
.Nd add a group or add users to a group
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl g Ar gid
|
|
|
|
.Ar group
|
1996-12-23 00:10:22 +00:00
|
|
|
.Op Ar user Ns , Ns Ar user,...
|
1996-11-04 17:21:11 +00:00
|
|
|
.Sh DESCRIPTION
|
1996-12-23 00:10:22 +00:00
|
|
|
The
|
1996-11-04 17:21:11 +00:00
|
|
|
.Nm
|
1996-12-23 00:10:22 +00:00
|
|
|
command adds a group to the
|
1996-11-04 17:21:11 +00:00
|
|
|
.Xr group 5
|
|
|
|
database.
|
1996-12-23 00:10:22 +00:00
|
|
|
The optional
|
1996-11-04 17:21:11 +00:00
|
|
|
.Ar user
|
1996-12-23 00:10:22 +00:00
|
|
|
is added to the group membership list.
|
|
|
|
The
|
1996-11-04 17:21:11 +00:00
|
|
|
.Ar user
|
1996-12-23 00:10:22 +00:00
|
|
|
argument may be a comma separated list of user names.
|
1996-11-04 17:21:11 +00:00
|
|
|
If
|
|
|
|
.Ar group
|
|
|
|
already exists
|
|
|
|
.Nm
|
|
|
|
add
|
|
|
|
.Ar user
|
|
|
|
to the
|
1996-12-23 00:10:22 +00:00
|
|
|
.Ar group .
|
1996-11-04 17:21:11 +00:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Sy -g gid
|
|
|
|
Create new group with group id
|
|
|
|
.Ar gid
|
1996-12-23 00:10:22 +00:00
|
|
|
if possible or the next higher id that is available. Default gid is 1000.
|
|
|
|
This option only applies to new groups.
|
1996-11-04 17:21:11 +00:00
|
|
|
.El
|
|
|
|
.Sh EXAMPLES
|
|
|
|
.Pp
|
|
|
|
$ addgroup -g 5000 cracau
|
|
|
|
.Pp
|
|
|
|
Add group `cracau' with group identification 5000 or higher.
|
|
|
|
.Pp
|
|
|
|
$ addgroup foo blech,bar
|
|
|
|
.Pp
|
|
|
|
Add user `blech' and user `bar' to group `foo'. Create group
|
1996-12-23 00:10:22 +00:00
|
|
|
`foo' if it does not exist.
|
1996-11-04 17:21:11 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr group 5 ,
|
|
|
|
.Xr adduser 8 ,
|
1997-01-20 00:03:00 +00:00
|
|
|
.Xr rmgroup 8 ,
|
|
|
|
.Xr rmuser 8
|
1996-11-04 17:21:11 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
command appeared in
|
|
|
|
.Fx 2.2 .
|