Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Aug 2011 13:06:02 -0700
From:      Yuri <yuri@rawbw.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Group permissions are broken?
Message-ID:  <4E497C2A.4060403@rawbw.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E497C2A.4060403>