Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Aug 2011 15:10:49 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Yuri <yuri@rawbw.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Group permissions are broken?
Message-ID:  <20110815201049.GB8675@dan.emsphone.com>
In-Reply-To: <4E497C2A.4060403@rawbw.com>
References:  <4E497C2A.4060403@rawbw.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20110815201049.GB8675>