Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Sep 2012 20:37:48 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-questions@FreeBSD.org
Subject:   Re: What are negative permissions?
Message-ID:  <50562A8C.9040504@FreeBSD.org>
In-Reply-To: <50562121.2030507@dreamchaser.org>
References:  <50562121.2030507@dreamchaser.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On 16/09/2012 19:57, Gary Aitken wrote:
> Can someone explainn to me what "negative group permissions" are?

It's where the group ownership of a file gives it fewer permissions than
are allowed for the world in general.

Suppose you have a file with these permissions and ownership:

foo bar -rwx---r-x

The owner -- foo -- has full read, write and execute permissions on the
file.  Anyone has read and execute permissions.  But the group -- bar --
has no permissions.

Now, logically, you might think that the world permissions would
override the lack of group permissions, but in fact, that's not what
happens.  Permissions like that mean 'everyone *except* members of group
bar can read and execute this.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey



[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBWKpQACgkQ8Mjk52CukIy1tACgk3QO0CShNnQWGnQe6K4AzNkB
bYYAnj2xRgMFKBRAnyJL2NhYlWzDTDTz
=KyYr
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50562A8C.9040504>