Date: Wed, 7 Mar 2001 08:49:38 -0500 From: Jim Mock <mij@osdn.com> To: Tobias Roth <roth@iamexwi.unibe.ch> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: trouble with groups Message-ID: <20010307084937.A61698@guinness.osdn.com> In-Reply-To: <20010307142542.B9749@arp.unibe.ch>; from roth@iamexwi.unibe.ch on Wed, Mar 07, 2001 at 02:25:42PM %2B0100 References: <20010307142542.B9749@arp.unibe.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 07 Mar 2001 at 14:25:42 +0100, Tobias Roth wrote: > Hello > > I just changed /etc/groups like this: > > cvs:*:1001:hans > > I added the user hans to group cvs Now could someone explain me this: > > [hans@sunbbw060 /usr/home] ls -l total 2 drwxrwxr-x 4 cvs cvs > 512 Mar 7 14:05 cvs drwxr-xr-x 15 hans hans 1024 Mar 7 > 11:36 hans [hans@sunbbw060 /usr/home] touch cvs/test touch: cvs/test: > Permission denied > > [hans@sunbbw060 /usr/home] whoami hans [hans@sunbbw060 /usr/home] id > uid=1000(hans) gid=1000(hans) groups=1000(hans), 0(wheel) > [hans@sunbbw060 /usr/home] id hans uid=1000(hans) gid=1000(hans) > groups=1000(hans) 0(wheel) 1001(cvs) [hans@sunbbw060 /usr/home] > > Which means two things: The user hans cannot write to a dir that > belongs to group cvs lathough he appears to have the right > permissions. And id returns two different results based on the > optional user argument. > > I must have misunderstood the basics of the file access system here, > I'd be glad if someone could enlighten me a bit. Did you log the user out and back in after you changed the group? - jim -- - jim mock <mij@osdn.com> - O|S|D|N - open source development network - - http://www.freebsdzine.org/ - jim@freebsdzine.org - jim@FreeBSD.org - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010307084937.A61698>