| Click this button to go to the index for this section. |
groups(1)
NAME
groups - Displays your group membershipSYNOPSIS
groups [user]DESCRIPTION
The groups command writes to standard output the groups to which you or the specified user belong. The DIGITAL UNIX operating system allows a user to belong to many different groups at the same time. Your primary group is specified in the /etc/passwd file. Once you are logged in, you can change your active group with the newgrp shell command (see sh). When you create a file, its group ID is that of your active group. Other groups that you belong to are specified in the /etc/group file. If you belong to more than one group, you can access files belonging to any of those groups without changing your primary group ID. These are called your concurrent groups.NOTES
The /etc/passwd and /etc/group files must be on the same node.EXAMPLES
To determine your group membership, enter: groups The groups to which you belong will be displayed. For example: devel prodFILES
/etc/group Contains group information. /etc/passwd Contains user information.SEE ALSO
Commands: csh(1), ksh(1), sh(1) Functions: initgroups(3), setgroups(2)