From owner-freebsd-questions Wed Mar 7 5:25:14 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailhub.unibe.ch (mailhub.unibe.ch [130.92.254.109]) by hub.freebsd.org (Postfix) with ESMTP id 17AE337B718 for ; Wed, 7 Mar 2001 05:25:11 -0800 (PST) (envelope-from roth@iamexwi.unibe.ch) Received: from CONVERSION-DAEMON by mailhub.unibe.ch (PMDF V5.2-32 #42480) id <0G9T00A01X2PM0@mailhub.unibe.ch> for freebsd-questions@freebsd.org; Wed, 7 Mar 2001 14:20:49 +0100 (MET) Received: from iamexwi.unibe.ch (haegar.unibe.ch [130.92.71.10]) by mailhub.unibe.ch (PMDF V5.2-32 #42480) with ESMTP id <0G9T0098EX2P0M@mailhub.unibe.ch> for freebsd-questions@freebsd.org; Wed, 07 Mar 2001 14:20:49 +0100 (MET) Received: from arp.unibe.ch (arp [130.92.62.25]) by iamexwi.unibe.ch (8.9.3+Sun/8.8.8) with ESMTP id OAA11448 for ; Wed, 07 Mar 2001 14:25:45 +0100 (MET) Received: (from roth@localhost) by arp.unibe.ch (8.9.3+Sun/8.9.1) id OAA10068 for freebsd-questions@freebsd.org; Wed, 07 Mar 2001 14:25:43 +0100 (MET) Date: Wed, 07 Mar 2001 14:25:42 +0100 From: Tobias Roth Subject: trouble with groups To: freebsd-questions@freebsd.org Message-id: <20010307142542.B9749@arp.unibe.ch> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline Content-transfer-encoding: 7BIT User-Agent: Mutt/1.2.5i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. thx and peace, Tobe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message