From owner-freebsd-questions@FreeBSD.ORG Mon Aug 15 20:38:16 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 0086A106566C for ; Mon, 15 Aug 2011 20:38:16 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id BD1DE8FC0C for ; Mon, 15 Aug 2011 20:38:15 +0000 (UTC) Received: by gyd10 with SMTP id 10so3920393gyd.13 for ; Mon, 15 Aug 2011 13:38:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.143.104 with SMTP id k68mr13837899yhj.65.1313440694827; Mon, 15 Aug 2011 13:38:14 -0700 (PDT) Received: by 10.236.207.38 with HTTP; Mon, 15 Aug 2011 13:38:14 -0700 (PDT) In-Reply-To: <4E497C2A.4060403@rawbw.com> References: <4E497C2A.4060403@rawbw.com> Date: Mon, 15 Aug 2011 13:38:14 -0700 Message-ID: From: Michael Sierchio To: Yuri Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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:38:16 -0000 On Mon, Aug 15, 2011 at 1:06 PM, Yuri wrote: > 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 =A0/tmp/my-test > -rw-rw---- =A01 vboxusers =A0vboxusers =A00 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 =A0/tmp/my-test > -rw-rw---- =A01 webcamd =A0webcamd =A00 Aug 15 13:02 /tmp/my-test > touch: /tmp/my-test: Permission denied > > Why does this error occur? Two groups seem identical. Just different grou= p > ids. /tmp has the sticky bit set. man 8 sticky