Robert de Geus
2007-Oct-13 13:20 UTC
[Samba] using cifs to access posix acl from a linux client
Hi, We would like to mount a Linux server running samba using a cifs mount from a linux client (linux->linux) and still be able to access the extended attributes. Acl's work on the native filesystem, however when we mount the samba server on the Linux client using mount -t cifs //localhost/test test -o username=xxx Then the extended attributes are no longer visible, only the default posix rights. Any idea's? native: -rw-rw-r--+ 1 iris iris 60 2007-10-13 13:06 /media/sdb1/test/c cifs share: -rw-rw-r-- 1 iris iris 60 2007-10-13 13:06 c The "+" is missing, hence extended attributes are neglected. Server and client Ubuntu Gutsy 3.0.26, in de smb.cfg we enabled everything we could find relating to acl's: unix extensions = yes ea support = yes nt acl support = yes map acl inherit = yes inherit acls = yes acl compatibility = yes acl is compiled into the samba suite. gr. Robert
Chuck Kollars
2007-Oct-15 16:14 UTC
[Samba] using cifs to access posix acl from a linux client
> We would like to mount a Linux server running samba > using a cifs mount from a linux client (linux-> > linux) and still be able to access the > extended attributes. > > Acl's work on the native filesystem, however when we > mount the samba server on the Linux client using > mount -t cifs //localhost/test test -o username=xxx > > Then the extended attributes are no longer visible, > only the default posix rights. Any idea's?My experience over the last year in probing deeply into the interaction of Linux ACLs with Samba (but I'm not a Samba expert and coult be wrong:-) is "you can't get there from here". While you can get Samba to pretty much use the Linux ACLs on the _server_ side, Linux ACLs will never behave _exactly_ the same way they do for a user who's directly logged on nor will they be visible to the _client_. I found the implementation of Linux ACLs to still be a little more off the beaten path than I assumed naively at first. It interacts weirdly with quotas; I can crash it (admittedly my kernel is now out of date). I had to get a special version of `rsync` that understood and propagated Linux ACLs (the regular one doesn't). And I'm even a little doubtful about full support in NFS. good luck! -Chuck Kollars ____________________________________________________________________________________ Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=list&sid=396545469