How to Give Write Permissions to Multiple Users on Directory in Mac OS X

October 4, 2011 | By Duchateaux.

This Short Guide will Show you How to Set by the Command Line a Shared Directory with Write Permission for all Users of the Group in macOS.
This Process is Very Promising and Useful but nearly Unused in the Unix-like Sphere.
Often on Mac we are Brought to Use the Finder Info Utility to Manage Permissions but this Utility isn’t Functional if you have to Recursively Change Ownerships and Permissions to Many Entities and to Share Ownerships.
Prerequisites:

  1. We Need to Add the Users to the Group by:

    sudo dseditgroup -o edit -a userToAdd -t user sharingGroup

  2. We Assing the Directory and his Content to the Group:

    sudo chgrp -R sharingGroup /path/To/Directory

  3. We Give Write Permission Recursively on Directory and his Content to the Group:

    sudo chmod -R 770 /path/To/Directory

In the Web Development Panorama this 770 become 774 for Files and 775 for Directories… If you want to Read More about Setting Permissions on Web Domains follow this Guide originally written for Joomla.


QuickChic Theme • Powered by WordPress