add .Vx so tmac.andoc will call tmac.mdoc-old
[unix-history] / usr / src / old / groups / groups.1
CommitLineData
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
CL
7.\"
8.Dd
9.Dt GROUPS 1
10.Os BSD 4.2
11.Sh NAME
12.Nm groups
13.Nd show group memberships
14.Sh SYNOPSIS
15.Nm groups
16.Op Ar user
17.Sh DESCRIPTION
03bfabb7 18The
d9d7a9f0 19.Nm groups
03bfabb7
KM
20command shows the groups to which you or the optionally specified
21user belong.
22Each user belongs to a group specified in the password file
d9d7a9f0 23.Pa /etc/passwd
03bfabb7 24and possibly to other groups as specified in the file
d9d7a9f0 25.Pa /etc/group .
03bfabb7
KM
26If you do not own a file but belong to the group which it is owned
27by then you are granted group access to the file.
d9d7a9f0 28.Pp
03bfabb7
KM
29When a new file is created it is given
30the group of the containing directory.
d9d7a9f0
CL
31.Sh SEE ALSO
32.Xr group 5 ,
33.Xr setgroups 2
34.Sh FILES
35.Dw /etc/passwd
36.Di L
37.Dp Pa /etc/passwd
38.Dp Pa /etc/group
39.Dp
40.Sh HISTORY
41.Nm Group
42appeared in 4.2 BSD.
43.Sh BUGS
03bfabb7 44More groups should be allowed.