groups(1bsd) (BSD System Compatibility)


groups -- (BSD) display a user's group memberships

Synopsis

   /usr/ucb/groups [user . . . ] 

Description

With no arguments, groups displays the groups to which you belong; otherwise it displays the groups to which the user belongs. 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 by which it is owned, you are granted group access to the file.

Files

/etc/passwd

/etc/group

References

getgroups(2)

Notices

This command is obsolescent.


30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.