From owner-freebsd-questions Wed Mar 7 5:49:56 2001 Delivered-To: freebsd-questions@freebsd.org Received: from snarf.osdn.com (snarf.osdn.com [209.192.217.153]) by hub.freebsd.org (Postfix) with ESMTP id 0E63137B71C for ; Wed, 7 Mar 2001 05:49:52 -0800 (PST) (envelope-from jim@guinness.osdn.com) Received: from guinness.osdn.com (root@localhost [127.0.0.1]) by snarf.osdn.com (8.11.3/8.11.3) with ESMTP id f27Dnhd82757; Wed, 7 Mar 2001 08:49:44 -0500 (EST) (envelope-from jim@guinness.osdn.com) Received: by guinness.osdn.com (Postfix, from userid 1000) id 5AA90C7; Wed, 7 Mar 2001 08:49:38 -0500 (EST) Date: Wed, 7 Mar 2001 08:49:38 -0500 From: Jim Mock To: Tobias Roth Cc: freebsd-questions@FreeBSD.ORG Subject: Re: trouble with groups Message-ID: <20010307084937.A61698@guinness.osdn.com> Reply-To: mij@osdn.com References: <20010307142542.B9749@arp.unibe.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.16i In-Reply-To: <20010307142542.B9749@arp.unibe.ch>; from roth@iamexwi.unibe.ch on Wed, Mar 07, 2001 at 02:25:42PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 - 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