I've got a ZFS filesystem that's shared via CIFS. Somehow, the permissions have got all messed up, to the point where the ownership is all correct but a whole bunch of files have 0000 permissions.
The files which work correctly look like this:
-rwx------+ 1 guest other 3.8M 2011-05-10 14:58 Presentation.ppt
How do I copy that permissions set and apply it across the rest of the files on the filesystem?
Update
Thanks for the responses – the problem I have is that a file with 700 permissions for some reason doesn't have the delete permission, when viewed from windows:
Setting the permission gives the '+' on the file.
Best Answer
You can view extended permissions with:
This could look like:
You could then apply this set of ACL settings recursively to your share: