1.\" Copyright (c) 1983 1990 The Regents of the University of California. 2.\" All rights reserved. 3.\" 4.\" %sccs.include.redist.man% 5.\" 6.\" @(#)groups.1 6.3 (Berkeley) 07/24/90 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 18The 19.Nm groups 20command shows the groups to which you or the optionally specified 21user belong. 22Each user belongs to a group specified in the password file 23.Pa /etc/passwd 24and possibly to other groups as specified in the file 25.Pa /etc/group . 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. 28.Pp 29When a new file is created it is given 30the group of the containing directory. 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 44More groups should be allowed. 45