Manual Page Result
0
Command: groups | Section: 1 | Source: Digital UNIX | File: groups.1.gz
groups(1) General Commands Manual groups(1)
NAME
groups - Displays your group membership
SYNOPSIS
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 com-
mand (see sh). When you create a file, its group ID is that of your ac-
tive 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
prod
FILES
Contains group information. Contains user information.
SEE ALSO
Commands: csh(1), ksh(1), sh(1)
Functions: initgroups(3), setgroups(2)
groups(1)