xcalybur

Q: How to edit sharing:CreateMask in El Capitan Server

The sharing:CreateMask setting in El Capitan server is set to 644. I need it set to 664 and creating a nsmb.conf file with that setting doesn't work.

 

How do I change this setting. It also appears to be per share point as well.

 

Thanks.

Mac mini, OS X El Capitan (10.11.6), Server

Posted on Aug 20, 2016 2:51 PM

Close

Q: How to edit sharing:CreateMask in El Capitan Server

  • All replies
  • Helpful answers

  • by Strontium90,

    Strontium90 Strontium90 Aug 24, 2016 7:31 PM in response to xcalybur
    Level 5 (4,067 points)
    Servers Enterprise
    Aug 24, 2016 7:31 PM in response to xcalybur

    I am going to suggest overriding the umask on the client machines.  Apple has a published article on this here Setting a custom umask in OS X - Apple Support

     

    Basically you want to run this command:

     

    sudo launchctl config user umask 002

     

    The command above will set the octal permissions to 664 for files and 775 for folders.  This grants read and write to both the owner and the group of each file and folder created after the command was issues and the machine rebooted.

     

    Permissions on existing files are not altered. 

     

    The command creates or edits /var/db/com.apple.xpc.launchd/config/user.plist.  Removing the file and rebooting the machine will revert the user permissions to a umask of 022.

     

    Reid

    Apple Consultants Network

    Author - "El Capitan Server – Foundation Services"

    Author - "El Capitan Server – Control & Collaboration"

    Author - "El Capitan Server – Advanced Services"

    :: Exclusively available in Apple's iBooks Store