]> git.cameronkatri.com Git - pw-darwin.git/blob - adduser/addgroup.8
Don't show on the screen just securely entered password
[pw-darwin.git] / adduser / addgroup.8
1 .\" Copyright (c) 1996 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\"
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 .\" SUCH DAMAGE.
24 .\"
25 .\" $Id: adduser.8,v 1.12 1996/08/28 17:54:13 adam Exp $
26
27 .Dd Oct, 30, 1996
28 .Dt ADDGROUP 8
29 .Os FreeBSD 2.2
30 .Sh NAME
31 .Nm addgroup
32 .Nd add a group or add users to a group
33 .Sh SYNOPSIS
34 .Nm
35 .Op Fl g Ar gid
36 .Ar group
37 .Op Ar user Op , Ar user,...
38 .Sh DESCRIPTION
39 .Nm
40 add a group to
41 .Xr group 5
42 database.
43 Optional
44 .Ar user
45 initialized the group with group members.
46 .Ar user
47 may be a comma separated list of user names.
48 If
49 .Ar group
50 already exists
51 .Nm
52 add
53 .Ar user
54 to the
55 .Ar group.
56 .Sh OPTIONS
57 .Bl -tag -width Ds
58 .It Sy -g gid
59 Create new group with group id
60 .Ar gid
61 if possible or higher. Default gid is 1000.
62 This option has only affects for new groups.
63 .El
64 .Sh EXAMPLES
65 .Pp
66 $ addgroup -g 5000 cracau
67 .Pp
68 Add group `cracau' with group identification 5000 or higher.
69 .Pp
70 $ addgroup foo blech,bar
71 .Pp
72 Add user `blech' and user `bar' to group `foo'. Create group
73 `foo' if not exists.
74 .Sh SEE ALSO
75 .Xr group 5 ,
76 .Xr adduser 8 ,
77 .Xr rmuser 8 ,
78 .Xr rmgroup 8
79 .Sh HISTORY
80 The
81 .Nm
82 command appeared in
83 .Fx 2.2 .