DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

group(F)


group -- format of the group file

Format

groupname:password:GID:users

Network Information Service (NIS) entries

+[groupname]:[password]::[users]
-groupname:

Description

/etc/group is an ASCII file. Each entry in group occupies one line and describes one group. Each line contains the following four colon-separated fields:

groupname
group name

password
encrypted group password (unused)

GID
numerical group ID

users
comma-separated list of all users allowed in the group

The encrypted group password field is not used, and is set to null.

/etc/group must have general read permission. It can be used, for example, to map numerical group IDs to names.

Network Information Service (NIS) entries

Entries in group beginning with ``+'' incorporate information obtained from NIS. A ``+:::'' entry has the effect of inserting the entire NIS group file at that point. If groupname is specified, the entry for that group is inserted. If a list of users is specified, this adds the corresponding list obtained from NIS.

An entry beginning with ``-'' excludes the specified group name, groupname. Any subsequent entries in group or obtained from NIS for that group are ignored.

Examples

Define a group local, add giant's list of members to the NIS list, and include all groups obtainable from NIS after this entry:
   local::100:fran,stan
   +giant:::bill,tina,alan,hetty
   +:::

Files


/etc/group
full pathname of group

See also

netgroup(NF), newgrp(C), passwd(C), passwd(F)

Standards conformance

group is conformant with:

NIST FIPS 151-2;
AT&T SVID Issue 2;
X/Open Portability Guide, Issue 3, 1990.


© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003