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 X.
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.
We Need to Add the Users to the Group by:
sudo dseditgroup -o edit -a userToAdd -t user sharingGroup
We Assing the Directory and his Content to the Group:
sudo chgrp -R sharingGroup /path/To/Directory
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.