Jump to content

Recommended Posts

Posted

Hi All.

Is it possible to implement acls' recursively in samba ?

 

I set up a test directory for students.

 

ls -l /home/DOMAIN
drwsrws---+ 5 DOMAIN\teststudent00       DOMAIN\domain^admins 4096 2008-07-21 09:36 teststudent00

 

I have acl setup so that DOMAIN^teachers have read only access:

 

getfacl /home/DOMAIN/teststudent00/
getfacl: Removing leading '/' from absolute path names
# file: home/DOMAIN/teststudent00
# owner: DOMAIN\134teststudent00
# group: DOMAIN\134domain^admins
user::rwx
group::rwx
group:DOMAIN\134teachers:r-x
mask::rwx
other::---

 

but the ACL is not sticky - when the teststudent creates an new directory within his homedrive, the DOMAIN\teachers permissions do not propagate through.

is this possible to achieve ?

 

the relevant samba share is here:

[homes]
comment = Home Directories
path = /home/%D/%U
valid users = %D\%S
read only = No
create mask = 0770
directory mask = 0770

Posted

In your global section, do you have the following options set?

 

map acl inherit = yes
nt acl support = yes
ea support = yes
store dos attributes = yes

 

I believe the key one for what you want is 'map acl inherit'. Of course this will only work if your using a filesystem that supports extended attributes and you have enabled it.

  • Thanks 1
Posted

yep, good catch. :)

 

Also watch out. If you start messing about with permissions with setfacl you may break things on the windows side of stuff. So be careful and/or backup your permissions settings before fiddling. :p

Posted

Oh and finally, you may also want to enable 'inherit owner'. Especially if your using quotas.

 

inherit owner = yes

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...