*BSD News Article 65039


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!newshost.telstra.net!act.news.telstra.net!psgrain!charnel.ecst.csuchico.edu!csusac!csus.edu!news.ucdavis.edu!library.ucla.edu!info.ucla.edu!agate!howland.reston.ans.net!newsfeed.internetmci.com!news.mathworks.com!fu-berlin.de!cs.tu-berlin.de!informatik.uni-bremen.de!nordwest.pop.de!uniol!uni-erlangen.de!news.tu-chemnitz.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Is there a free bsd equiv to SVR4.x newgrp?
Date: 4 Apr 1996 22:42:39 GMT
Organization: Private BSD site, Dresden
Lines: 28
Message-ID: <4k1j8v$krb@uriah.heep.sax.de>
References: <4jhrcp$9nk@ns.hicom.net>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.3

doug@hicom.net (Doug Harper) writes:
> Like the subject says.  Is there a free bsd equivilant to the SVR4.x newgrp 
> command?  

/bin/sh :-)

You don't need it, you are automatically a member of all your
secondary groups (unlike in SVR <= 3, where you've always only got the
credentials for one of your secondary groups at a time).

Have a look at the output of id(1):

j@uriah 179% id
uid=107(j) gid=101(other)

That's my primary UID and GID.

 groups=101(other), 0(wheel), 5(operator), 7(bin), 8(news),
 31(guest), 40(cvs), 41(msql), 66(uucp), 117(dialer), 5001(ppp)

These are all the groups i'm a member of.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)