Hello,
I would like to use ACL to attribute writting rights on a folder, and I meet some difficulties: it works correctly with ACL on a user account but not with ACL on a group?
I run
OpenMediaVault (0.5.34), a NAS solution based on Debian (6.0.8).
I'm a Linux newbie but I want learn it!
I've created "movies" folder with "root" account (via ssh), and by default, "users" group has reading rights on it only.
I've created the new group "movies-admin", whose the user account "christopher" is member.
I've added writing rights to "movies-admin" on "movies" folder with ACL:
Code:
root@NAS:/media/UUID/multimedia# setfacl -m g:movies-admin:rwx movies
root@NAS:/media/UUID/multimedia# getfacl movies
# file: movies
# owner: root
# group: users
# flags: -s-
user::rwx
group::r-x
group:movies-admin:rwx
mask::rwx
other::r-x
But I can't write in this folder with "christopher" account!
If I add writing rights directly to "christopher" on "movies" with ACL, I'm able to write in this folder with this account.
Code:
root@NAS:/media/UUID/multimedia# setfacl -m u:christopher:rwx movies
root@NAS:/media/UUID/multimedia# getfacl movies
# file: movies
# owner: root
# group: users
# flags: -s-
user::rwx
user:christopher:rwx
group::r-x
group:movies-admin:rwx
mask::rwx
other::r-x
Thus, why it doesn't work when I apply ACL with the group, and it work when I apply ACL with the account?
Thanks for your help :)
Chris