Commit | Line | Data |
---|---|---|
d9d7a9f0 CL |
1 | .\" Copyright (c) 1983 1990 The Regents of the University of California. |
2 | .\" All rights reserved. | |
03bfabb7 | 3 | .\" |
d9d7a9f0 | 4 | .\" %sccs.include.redist.man% |
03bfabb7 | 5 | .\" |
d0719240 | 6 | .\" @(#)groups.1 6.4 (Berkeley) %G% |
d9d7a9f0 | 7 | .\" |
ee9b0a0a CL |
8 | .Vx |
9 | .Vx | |
d9d7a9f0 CL |
10 | .Dd |
11 | .Dt GROUPS 1 | |
12 | .Os BSD 4.2 | |
13 | .Sh NAME | |
14 | .Nm groups | |
15 | .Nd show group memberships | |
16 | .Sh SYNOPSIS | |
17 | .Nm groups | |
18 | .Op Ar user | |
19 | .Sh DESCRIPTION | |
03bfabb7 | 20 | The |
d9d7a9f0 | 21 | .Nm groups |
03bfabb7 KM |
22 | command shows the groups to which you or the optionally specified |
23 | user belong. | |
24 | Each user belongs to a group specified in the password file | |
d9d7a9f0 | 25 | .Pa /etc/passwd |
03bfabb7 | 26 | and possibly to other groups as specified in the file |
d9d7a9f0 | 27 | .Pa /etc/group . |
03bfabb7 KM |
28 | If you do not own a file but belong to the group which it is owned |
29 | by then you are granted group access to the file. | |
d9d7a9f0 | 30 | .Pp |
03bfabb7 KM |
31 | When a new file is created it is given |
32 | the group of the containing directory. | |
d9d7a9f0 CL |
33 | .Sh SEE ALSO |
34 | .Xr group 5 , | |
35 | .Xr setgroups 2 | |
36 | .Sh FILES | |
37 | .Dw /etc/passwd | |
38 | .Di L | |
39 | .Dp Pa /etc/passwd | |
40 | .Dp Pa /etc/group | |
41 | .Dp | |
42 | .Sh HISTORY | |
43 | .Nm Group | |
44 | appeared in 4.2 BSD. | |
45 | .Sh BUGS | |
03bfabb7 | 46 | More groups should be allowed. |