From owner-freebsd-arch Tue Jan 16 14:51: 0 2001 Delivered-To: freebsd-arch@freebsd.org Received: from alive.znep.com (sense-sea-MegaSub-1-500.oz.net [216.39.145.246]) by hub.freebsd.org (Postfix) with ESMTP id 54B7E37B6A4; Tue, 16 Jan 2001 14:50:42 -0800 (PST) Received: from localhost (marcs@localhost) by alive.znep.com (8.9.3/8.9.1) with ESMTP id OAA13309; Tue, 16 Jan 2001 14:50:41 -0800 (PST) (envelope-from marcs@znep.com) Date: Tue, 16 Jan 2001 14:50:41 -0800 (PST) From: Marc Slemko To: John Baldwin Cc: arch@FreeBSD.org Subject: Re: no newgroup/newgrp in FreeBSD? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 16 Jan 2001, John Baldwin wrote: > > On 16-Jan-01 Marc Slemko wrote: > > On Tue, 16 Jan 2001, Peter Wemm wrote: > > > >> This functionality does not have any place in FreeBSD as "all groups in > >> the groups vector are equal". We could simply provide a non-setuid wrapper > >> for running a new command with no changes... That would be compliant with > >> the interface.. > > > > newgrp is also of use when your group membership in /etc/groups has been > > changed after you logged in and were setup with the appropriate group > > list. > > > > You login, are not a member of group freeporn, then someone adds you to > > group freeporn, and "newgrp freeporn" will let you get free porn without > > logging in again, etc. > > > > No? > > /usr/bin/login -f ${LOGNAME} A non setuid wrapper would still not provide the same functionality that newgrp does, which is part of what I'm repsonding to. And login -f does not preserve things like environment, cwd, etc. like newgrp does which matters when you have environment variables that vary (eg. ssh authentication agent). And you are then logged in twice. Sure, there are lots of other ways to do nearly the same thing. Including simply logging out and logging in again. The point is simply that newgrp would not be a noop on freebsd if it were implemented and does have some useful, if minor, functionality. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message