Re: Negative permissions WITHOUT ACLs



"Starfish" <frel8817@xxxxxxxxxxxxx> writes:

Here goes: How do you specify negative permission¹ in Unix/Linux
without using ACLs?

¹E.g. saying that the user "Ellen" should not have write access to a
file regardless of the permissions given to her groups.

On my machine, I am the only member of group "buhr". If there's a
file, owned by anyone besides "buhr", with the following permissions:

-rw----r-- 1 root buhr 5 2006-10-12 11:56 buhr_cant_access

then everyone can read it except me.

Unfortunately, the standard Unix permissions system hasn't really been
designed with this usage kept clearly in mind, so there may be ways
for users to manipulate their effective, real, and supplementary group
memberships (with the help of bugs in setgid programs, perhaps) in
such a way as to drop group membership and work around the protection.

Also, at least one easy attack comes to mind: hard links made to the
"unreadable" file from under "~buhr/public_html/" or a public FTP
space would likely make the file readable through the web or FTP
server. I assume exclusionary ACLs would suffer from the same
problems, though.

--
Kevin <buhr@xxxxxxxxxxx>
.



Relevant Pages

  • Re: Two user groups, one file, different permissions.
    ... vpfr33 wrote: ... group A needs to have write permissions on a text file, ... if you don't mind everyone other than group A having read ... also needs to support ACLs for this to work. ...
    (comp.os.linux.misc)
  • Re: Changing groups
    ... pleaderb, sue, frank, ed are members of group projectb ... Everyone is a member of group user. ... depending on the file's permissions they can read and write the ... I do this all the time, using Samba. ...
    (Debian-User)
  • Re: How to remove a user from a mail group (Tried to search...)
    ... If you're using Distribution Groups, these cannot show up in any ACLs ... If it is a Security Group, you'll need to figure out the what different ... resources the group could have permissions on. ... I go to "member of" tab. ...
    (microsoft.public.exchange.admin)
  • Re: How to use a Group Distribution list inorder to send and received messages
    ... In the Permissions list, locate Send As, and then click to select the ... permission of the user account that is a member of one of administrative ... groups will be reset to match the ACL of the AdminSDHolder thread. ... Directory domain controller that holds the primary domain controller ...
    (microsoft.public.exchange.admin)
  • Re: How to use a Group Distribution list inorder to send and received messages
    ... In the Permissions list, locate Send As, and then click to select the ... permission of the user account that is a member of one of administrative ... groups will be reset to match the ACL of the AdminSDHolder thread. ... Directory domain controller that holds the primary domain controller ...
    (microsoft.public.exchange.admin)