How to stop permissions inheritance?

Discussion in 'General Linux' started by chrbar, Feb 21, 2014.

  1. chrbar

    chrbar New Member

    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    3
    Hello,

    I would like to know if it's possible to stop permissions inheritance?

    I've a level-1 folder named "common", wherein all users can read/write.
    Inside this folder, I've created a level-2 folder named "private" wherein members of "abc" group can enter/read/write.

    I can build correctly this structure, but I'd like that members of "abc" are not able to rename "private" folder, and I don't succeed to do that!
    I've tried many way, including ACL, but it doesn't work!
    I'm not sure, but I think the problem is that members of "abc" group are member of "users" (member of child folder/group are member of parent folder/group)!

    Do you know how can I do that?

    Thanks for your help,
    Chris

    \common\private\


    root@server:/# getfacl common
    # file: common
    # owner: root
    # group: users
    # flags: -s-
    user::rwx
    group::rwx
    other::---

    root@server:/common# getfacl private
    # file: private
    # owner: root
    # group: abc
    # flags: -s-
    user::rwx
    group::rwx
    other::---
    Last edited: Feb 21, 2014

Share This Page