View Full Version : Ubuntu make a acl on a folder control new files?


slug
27-12-2008, 19:12
Hi,
I've added the acl entry to etc/fstab for /home

when I add new files /home/shared/Videos there not getting the group:shared:rx that I have set. Heres what I've done so far

$ sudo setfacl -m group:shared:rx /home/shared/Videos/
$ getfacl Videos/
# file: Videos/
# owner: ###
# group: shared
user::rwx
group::rwx #effective:r-x
group:shared:r-x
mask::r-x
other::---


but yet when i touch test..

# file: test
# owner: ###
# group: ###
user::rw-
group::r--
other::r--

so how do I make it set the acl for new files / directorys

adaline
27-12-2008, 20:39
$ sudo setfacl -d -m group:shared:rx /home/shared/Videos/

slug
27-12-2008, 20:43
OK thats worked for files inside Videos. but not the subdirectorys inside there IE /home/shared/Videos/DIVX/test

adaline
27-12-2008, 20:45
try
$ sudo setfacl -d -R -m group:shared:rx /home/shared

slug
27-12-2008, 20:47
Spot on - thanks alot !

adaline
27-12-2008, 20:49
No worries :)