Tip when sharing your datasets...

All your general support questions for OpenZFS on OS X.

Tip when sharing your datasets...

Postby tangles » Fri Nov 10, 2017 12:04 am

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)
tangles
 
Posts: 121
Joined: Tue Jun 17, 2014 6:54 am

Re: Tip when sharing your datasets...

Postby Double K » Fri Nov 10, 2017 2:27 am

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.
Double K
 
Posts: 5
Joined: Mon Nov 06, 2017 3:04 pm

Re: Tip when sharing your datasets...

Postby tangles » Fri Nov 10, 2017 4:53 am

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...
tangles
 
Posts: 121
Joined: Tue Jun 17, 2014 6:54 am


Return to General Help

Who is online

Users browsing this forum: No registered users and 3 guests

cron