Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • You can find something related here Commented Dec 7, 2022 at 2:49
  • But the group already had r-x permission on the directory, and the directory's group was "test". So, when ACL is set, the traditional permissions are ignored for the same group? Commented Dec 7, 2022 at 6:25
  • @DamnVegetables As far as I know I would say yes. When a file/dir has ACLs this checks the permissions for the given user and if this one is not allowed for making reading,writing,executing then the action is rejected. Maybe you are confusing by what I answered to you some days ago in this answer: "However this behavior is correct because the Unix permissions and the owner drwxr-xr-x+ 2 guest guest allow to the guest user to cd and create files to /test/only_r" Commented Dec 7, 2022 at 7:28
  • In that case the directory only_r was owed by the same user so it was able to change/modify/create files under that directory. In this case as you said the test2 is owned by root as user, and test as group. But, I remember reading(but I did not find the thread) something about user permissions are primordial over group permissions. Commented Dec 7, 2022 at 7:34
  • For example, if I have a file with this perms: --x rwx --- test test, as you can the test user has x permissions but its group test has rwx permissions. Thus if you try to edit the file or reading it you will get a Permission Denied even if you are in the same group. In your case it seems that the test group is ignored and the ACLs are applied. You can swap the owner of your test2 dir: sudo chown test:root. And since the dir is now owned by test as a user the ACLs will be ignored (if you assign only write perms you will be able to read/write/change to the dir). Commented Dec 7, 2022 at 7:44