LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ACL doesn't work with groups ? (https://www.linuxquestions.org/questions/linux-newbie-8/acl-doesnt-work-with-groups-4175494475/)

chrbar 02-10-2014 04:31 PM

ACL doesn't work with groups ?
 
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

chrbar 02-11-2014 07:23 AM

It's ok now!
It could need to wait a bit before group creation or change are ready or applied...
I don't know exactly?


All times are GMT -5. The time now is 05:24 AM.