GROUPS(1) BSD GROUPS(1)
NAME
groups - show group memberships
SYNOPSIS
groups [user]
DESCRIPTION
The groups command shows the groups to which you or the optionally
specified user belong. Each user belongs to a group specified in the
password file /etc/passwd and possibly to other groups as specified in
the file /etc/group. If you don't own a file but belong to the group
that owns it, you are granted group access to the file.
When a new file is created, it is given the group of the containing
directory, if the directory was set up as a BSD directory (see acl(7)).
FILES
/etc/passwd
/etc/group
SEE ALSO
setgroups(2)