adding unix groups
kai at uicsrd.csrd.uiuc.edu
kai at uicsrd.csrd.uiuc.edu
Fri Sep 2 22:12:00 AEST 1988
The file is "/etc/group", not "/etc/groups". The format is:
groupname::groupnumber:member1,member2(,membern...)
For example:
sw::31:sloppy,slimy
hw::32:sloppy,silly
The file "/etc/passwd" defines the "default group" (referenced by number) to
which you belong. You do not have to be listed in /etc/group for that
group.
The command "groups username" displays what groups any particular user is a
member of. After changing the /etc/group file, the user must logout and back
in again to have any changes take effect.
Patrick Wolfe (pwolfe at kai.com, kailand!pwolfe)
System Manager, Kuck and Associates, Inc.
More information about the Comp.unix.wizards
mailing list