hpux man page for groups

Query: groups

OS: hpux

Section: 1

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

groups(1)						      General Commands Manual							 groups(1)

NAME
groups - show group memberships
SYNOPSIS
[user]
DESCRIPTION
shows the groups to which the caller or the optionally specified user belong. If invoked with no arguments, prints the current access list returned by (see getgroups(2)). Each user belongs to a group specified in the password file and possibly to other groups as specified in the files and A user is granted the permissions of those groups specified in and at login time. The permissions of the groups specified in are normally available only with the use of (see newgrp(1)). If a user name is specified with no options, prints the union of all these groups. The and options limit the printed list to those groups specified in and respectively. If a user name is not specified with any of these options, is called to determine the default user name (see cuserid(3S)). The printed list of groups is sorted in ascending collation order (see Environment Variables below).
EXTERNAL INFLUENCES
Environment Variables determines the order in which the output is sorted. If is not specified in the environment or is set to the empty string, the value of is used as a default. If is not specified or is set to the empty string, a default of ``C'' (see lang(5)) is used instead of If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to ``C'' (see environ(5)).
EXAMPLES
Check file and display all groups to which user belongs:
AUTHOR
was developed by the University of California, Berkeley.
FILES
SEE ALSO
id(1), newgrp(1), getgroups(2), initgroups(3C), cuserid(3S), group(4). groups(1)
Related Man Pages
getgrouplist(3) - linux
nngrep(1) - debian
getgrouplist(3) - centos
getaccess(1) - hpux
getgrouplist(3) - suse
Similar Topics in the Unix Linux Community
User groups
Where are my groups
Repeating groups problem
Group Permissions - How to tell the difference
A way to capture the user list