[comp.unix.wizards] adding unix groups

JPOULIN%BOWDOIN.BITNET@mitvma.mit.edu (09/01/88)

I'm running ULTRIX 2.0 and I can't figure out how to add additional
groups to a user's account.  Some of our privaledged accounts belong
to 2 or 3 groups.  Also, does anyone know the name of the file that
lists who belongs in which groups?  I checked /etc/groups, but this
has been long outdated.  Anyone know of another standard file or is
this a local quirk?  ANY help would be *greatly* appreciated.

Jeff Poulin
jpoulin%bowdoin.bitnet@cunyvm.cuny.edu

kai@uicsrd.csrd.uiuc.edu (09/02/88)

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@kai.com,  kailand!pwolfe)
System Manager, Kuck and Associates, Inc.