Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ groups(1) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

newgrp

setgroups

initgroups subroutine in AIX Operating



GROUPS(1,C)                 AIX Commands Reference                  GROUPS(1,C)



-------------------------------------------------------------------------------
groups



PURPOSE

Displays your group membership.

SYNTAX


          +--------+
groups ---|       1|---|
          +- user -+


-----------------
1 The default user is the person running the command.


Warning: See restrictions, Chapter 18, AIX Programming Tools and Interfaces.

DESCRIPTION

The groups command writes to standard output the groups to which you or the
specified user belong.  The AIX Operating System allows you to belong to many
different groups at the same time.

Your primary group is specified in the file /etc/passwd.  Once you are logged
in, you can change your active group with the newgrp command (see page
newgrp-1).  When you create a file, its group ID is that of your active group.

Other groups that you belong to are specified in the file /etc/group.  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.

FILES

/etc/group            Group file; contains group IDs.
/etc/passwd           Password file; contains user IDs.

RELATED INFORMATION

See the following command:  "newgrp."

See the setgroups system call and the initgroups subroutine in AIX Operating
System Technical Reference.






Processed November 8, 1990        GROUPS(1,C)                                 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026