groups(1) DG/UX R4.11MU05 groups(1)
NAME
groups - show group memberships
SYNOPSIS
groups [ user ]
where:
user A user name listed in /etc/passwd or /etc/group
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 do not own a file but belong to the
group that owns it, you are granted group access to the file.
The algorithm used in the groups command outputs the name of the
group specified in /etc/passwd to which the user belongs. It then
outputs the names of other groups specified in the file /etc/group of
which the user is a member up to NGROUPS_MAX, where NGROUPS_MAX is
the maximum number of simultaneous supplementary group IDs.
FILES
/etc/passwd
/etc/group
SEE ALSO
chgrp(1), newgrp(1), setgroups(2), group(4).
Licensed material--property of copyright holder(s)