Xref: utzoo comp.unix.questions:5169 comp.unix.wizards:6221 Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!ptsfa!lll-tis!mordor!sri-spam!rutgers!im4u!ut-sally!utah-cs!utah-gr!stride!stride1!mitch From: mitch@stride1.UUCP (Thomas P. Mitchell) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: Setting up groups Summary: "/etc/group" Message-ID: <704X@stride.Stride.COM> Date: 21 Jan 88 00:00:00 GMT References: <4718@well.UUCP> Sender: news@stride.Stride.COM Reply-To: mitch@stride1.UUCP (Thomas P. Mitchell) Organization: MicroSage Comp. Sys. Inc., 680 S. Rock Blvd, Reno, NV 89502 Lines: 36 In article <4718@well.UUCP> samlb@well.UUCP (Samuel B. Bassett) writes: >Semi-arcane question: > > How do you assign a user to more than one group? Hello Sam, You (root) must edit the file "/etc/group" to have the user identified as a member of groups other than the primary one in the passwd file. -------- example -------- root:*:0:root,mitch sys:*:3:root,bin,sys,adm,mitch games:*:10:root,bruce staff:*:100:sysman,mitch -------------------------- Then depending on the operating system BSD, SysV, UniStride, AIX etc. (trademarked products) the user may need to use the 'newgrp' command (Sys V) to move from the original group to another. On systems with a BSD flavor it is possible to reside in a number of groups at a time. In the SysV case 'newgrp' causes in effect a new login. This flushes any environment or history that may exist. Our UniStride while a SysV based OS supports multiple groups. One thing to double check on your system is the group assignment rules when a file is created. Thomas P. Mitchell (mitch@stride1.Stride.COM) Phone: (702) 322-6868 TWX: 910-395-6073 MicroSage Computer Systems Inc. a Division of Stride Micro. Opinions expressed are probably mine.