user1463291
user1463291

Reputation: 13

ACL on the directory itself

I have a directory

..../test

With the follow ACL permissions.

$ getfacl test
# file: test
# owner: root
# group: root
user::rwx
user:usl:rwx
group::r-x
mask::rwx
other::---
default:user::rwx
default:user:usl:rw-
default:group::r-x
default:mask::rwx
default:other::---

It works great with user usl beeing able to write inside the directory, but the user do not have write permission on the directory itself?

$ rmdir test
rmdir: failed to remove `test': Permission denied

Upvotes: 0

Views: 104

Answers (1)

twalberg
twalberg

Reputation: 62379

Removing a directory requires write permission in the parent of that directory also, since that directory needs to be updated.

Upvotes: 1

Related Questions