From owner-freebsd-questions@FreeBSD.ORG Mon Aug 15 20:10:51 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5960A106566B for ; Mon, 15 Aug 2011 20:10:51 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email2.allantgroup.com (email2.emsphone.com [199.67.51.116]) by mx1.freebsd.org (Postfix) with ESMTP id 1E1008FC26 for ; Mon, 15 Aug 2011 20:10:50 +0000 (UTC) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email2.allantgroup.com (8.14.4/8.14.4) with ESMTP id p7FKAoaI078936 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 15 Aug 2011 15:10:50 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.5/8.14.5) with ESMTP id p7FKAoA2079631 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 15 Aug 2011 15:10:50 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.5/8.14.5/Submit) id p7FKAoKK079623; Mon, 15 Aug 2011 15:10:50 -0500 (CDT) (envelope-from dan) Date: Mon, 15 Aug 2011 15:10:49 -0500 From: Dan Nelson To: Yuri Message-ID: <20110815201049.GB8675@dan.emsphone.com> References: <4E497C2A.4060403@rawbw.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E497C2A.4060403@rawbw.com> X-OS: FreeBSD 8.2-STABLE User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.97.2 at email2.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (email2.allantgroup.com [199.67.51.78]); Mon, 15 Aug 2011 15:10:50 -0500 (CDT) X-Scanned-By: MIMEDefang 2.68 on 199.67.51.78 Cc: FreeBSD Questions Subject: Re: Group permissions are broken? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2011 20:10:51 -0000 In the last episode (Aug 15), Yuri said: > User john is a member of both webcamd and vboxusers: > # grep john /etc/group > webcamd:*:145:john > vboxusers:*:920:john > > When the file /tmp/my-test is owned by webcamd, user john can touch it ok: > $ ls -l /tmp/my-test ; touch /tmp/my-test > -rw-rw---- 1 vboxusers vboxusers 0 Aug 15 12:54 /tmp/my-test > > But when /tmp/my-test is owned by webcamd, user john gets an error: > $ ls -l /tmp/my-test ; touch /tmp/my-test > -rw-rw---- 1 webcamd webcamd 0 Aug 15 13:02 /tmp/my-test > touch: /tmp/my-test: Permission denied > > Why does this error occur? Two groups seem identical. Just different group > ids. > > Filesystem is UFS: /dev/ad10s1a on / (ufs, NFS exported, local) As a sanity check, what is the output of the "groups" command? If you recently edited /etc/group, maybe you need to log out and back in to a credential with the new group list? -- Dan Nelson dnelson@allantgroup.com