Page 1 of 1

Tip when sharing your datasets...

PostPosted: Fri Nov 10, 2017 12:04 am
by tangles
Hi,

Added a new command to my script when creating a new pool/data set:

Code: Select all
sudo chmod -RN; sudo chmod -R +a "admin allow list,add_file,add_subdirectory,delete_child,read,readattr,readextattr,readsecurity,search,delete,append,write,writeattr,writeextattr,chown" $pool


might come in handy for those who used to rely on Apple's Server.app (but now Server.app has dropped file sharing :roll: )

(as always, craft to your own needs/risk)

Re: Tip when sharing your datasets...

PostPosted: Fri Nov 10, 2017 2:27 am
by Double K
Thanks for sharing tangles.

Would like to know if your permissions automatically propagate to newly created files/folders on your OS X SMB share by your users.
I've got a (OS X Sharing only account) Windows user attaching to a SMB share on a dataset and when they create files or folders, permissions become 600 or 700 username:everyone with no ACE's, and then no one else (including admin) can open the folder or read the file.

Re: Tip when sharing your datasets...

PostPosted: Fri Nov 10, 2017 4:53 am
by tangles
Hi Double K,

I suspect you would want to add, file_inherit and directory_inherit to the command...

have a good read of "man chmod" when in terminal.app as it has all sorts of goodies and includes:

Code: Select all
ACL inheritance is controlled with the following permissions words, which may only be applied to directories:
           file_inherit
                   Inherit to files.
           directory_inherit


Do be careful though, perhaps have a play on a test dataset first...