0

If a user individually granted one set of rights to a folder but a different set of rights is granted to a group to which he belongs, which takes precedence?

I originally thought that the lower rights would take precedence. Now I am thinking that it is the higher set of rights but Deny will take priority over a grant.

How does this work?

2 Answers 2

4

In my admittedly limited and not rigorously tested experience, a user is granted the union of user and group rights minus the deny parts.

2
  • That is my also admittedly limited and not rigorously tested experience. Thanks!
    – Ivan
    Dec 21, 2012 at 15:26
  • This is correct. A permit in any set is enough to allow access, A deny in any set is enough to forbid access.
    – David
    Dec 21, 2012 at 16:39
0

I created a folder with r-x for user, -w- for group, and --- for other.

I can browse the folder but not modify.

So it looks like user rights override group rights.

4
  • 1
    That could also mean that the lower of the two rights are applied. For example, if the group was given read access but the individual write access, what happens?
    – Ivan
    Dec 21, 2012 at 15:38
  • Changing folder to -wx for user and r-- for group allows me to create and edit files but I cant list files. Looks like user rights are still applied. Dec 21, 2012 at 18:58
  • Are you talking about Linux? Dec 23, 2012 at 0:09
  • whoops!! Sorry about that! Dec 28, 2012 at 6:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .