From owner-freebsd-questions@FreeBSD.ORG Mon Aug 15 20:06:03 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 68CD5106564A for ; Mon, 15 Aug 2011 20:06:03 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 3EC298FC08 for ; Mon, 15 Aug 2011 20:06:02 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id p7FK62eP048049 for ; Mon, 15 Aug 2011 13:06:02 -0700 (PDT) (envelope-from yuri@rawbw.com) Message-ID: <4E497C2A.4060403@rawbw.com> Date: Mon, 15 Aug 2011 13:06:02 -0700 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:5.0) Gecko/20110716 Thunderbird/5.0 MIME-Version: 1.0 To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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:06:03 -0000 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) Yuri