GROUPS(1) — HP-UX
Series 200, 300, 800 Only
NAME
groups − show group memberships
SYNOPSIS
groups [ [-p] [-g] [-l] user ]
DESCRIPTION
The groups command shows the groups to which you or the optionally specified user belong. If invoked with no arguments, groups prints the current access list returned by getgroups(2). Each user belongs to a group specified in the password file /etc/passwd and possibly to other groups as specified in the files /etc/group and /etc/logingroup . A user is granted the permissions of those groups specified in /etc/passwd and /etc/logingroup at login time. The permissions of the groups specified in /etc/group are normally available only with the use of newgrp(1). If a user name is specified with no options, groups prints the union of all these groups. The -p, -g, and -l options limit the list which is printed to only those groups specified in /etc/passwd, /etc/group, and /etc/logingroup, respectively.
FILES
/etc/group
/etc/logingroup
/etc/passwd
AUTHOR
Groups was developed by the University of California, Berkeley California, Computer Science Division, Department of Electrical Engineering and Computer Science.
SEE ALSO
id(1), newgrp(1), getgroups(2), initgroups(3C), group(4).
Hewlett-Packard Company — Version B.1, May 11, 2021