Sheffield Forum
Your message here

Ubuntu make a acl on a folder control new files?
Home > General Forums > Computer & Tech Chat

Reply
 
Thread Tools Search this Thread
Old 27-12-2008, 19:12   #1
slug
Registered User
 
slug's Avatar
 
Join Date: Jul 2008
Location: S7
Total Posts: 337
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

Last edited by slug; 27-12-2008 at 19:22.
  Reply With Quote
Sponsored Links - Register and/or Login to hide this ad.
Old 27-12-2008, 20:39   #2
adaline
ZeroCool
 
adaline's Avatar
 
Join Date: Jan 2005
Location: Hunters Bar
Total Posts: 1,302
$ sudo setfacl -d -m group:shared:rx /home/shared/Videos/
  Reply With Quote
Old 27-12-2008, 20:43   #3
slug
Registered User
 
slug's Avatar
 
Join Date: Jul 2008
Location: S7
Total Posts: 337
OK thats worked for files inside Videos. but not the subdirectorys inside there IE /home/shared/Videos/DIVX/test
  Reply With Quote
Old 27-12-2008, 20:45   #4
adaline
ZeroCool
 
adaline's Avatar
 
Join Date: Jan 2005
Location: Hunters Bar
Total Posts: 1,302
try
$ sudo setfacl -d -R -m group:shared:rx /home/shared
  Reply With Quote
Old 27-12-2008, 20:47   #5
slug
Registered User
 
slug's Avatar
 
Join Date: Jul 2008
Location: S7
Total Posts: 337
Spot on - thanks alot !
  Reply With Quote
Old 27-12-2008, 20:49   #6
adaline
ZeroCool
 
adaline's Avatar
 
Join Date: Jan 2005
Location: Hunters Bar
Total Posts: 1,302
No worries
  Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search



All times are GMT. The time now is 00:37.
POSTS ON THIS FORUM ARE NOT ACTIVELY MONITORED
Click "Report Post" under any post which may breach our terms of use.
©2002-2012 SheffieldForum.co.uk | Powered by vBulletin ©2013