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.4 (Berkeley) 03/14/91 7.\" 8.Vx 9.Vx 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 20The 21.Nm groups 22command shows the groups to which you or the optionally specified 23user belong. 24Each user belongs to a group specified in the password file 25.Pa /etc/passwd 26and possibly to other groups as specified in the file 27.Pa /etc/group . 28If you do not own a file but belong to the group which it is owned 29by then you are granted group access to the file. 30.Pp 31When a new file is created it is given 32the group of the containing directory. 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 44appeared in 4.2 BSD. 45.Sh BUGS 46More groups should be allowed. 47