The Fastest Site on The Block Blog
Sharing files with other users in Mac OS X 10.4+
I’ve been wanting to share files between me and my wife’s account on the Mac, but have not been able to do so. I’ve finally found the answer using ACL’s. It’s very easy to do, just follow these steps for every account you want to make accessible by others.
- Open up a Terminal (Finder -> Applications -> Utilities -> Terminal)
- Execute the following command from the prompt, notice that the leading # is not part of the command, and that <username> tag should be replaced by the “short name” of the users whose files you want to share.
find /Users/<username>/ -exec sudo chmod +a# 0 'staff allow add_file,add_subdirectory,list,search,readattr,delete,delete_child, writeattr,writeextattr,file_inherit,directory_inherit' '{}' ';' - All accounts on the machine should belong to the staff group and have full access to this users files.
You can modify the command to fit your needs, for example lets say you only want to share Pictures change "/Users/<username>/" to "/Users/<username>/Pictures/"
If you only want admins to be able to have permissions change +a# 0 'staff allow to +a# 0 'admin allow
| Print article | This entry was posted by brian on June 1, 2009 at 10:59 pm, and is filed under Website Optimization. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 10 months ago
Don’t understand these directions. Is the command literally find /Users// -exec sudo chmod +a# 0 ‘staff allow add_file,add_subdirectory,list,search,readattr,delete,delete_child, writeattr,writeextattr,file_inherit,directory_inherit’ ‘{}’ ‘;’??? What’s the “short name” of the user???
I come from Windows environment, and will all the great things said about Apple, I can’t believe “sharing” a folder with other users on the same computer is so complicated that it requires some crazy line of code. Why simply turning on “sharing” on the folder, which is an option, doesn’t work at all is beyond me.
about 10 months ago
It’s a security Feature of Mac OS X. I’m also surprised there isn’t an easier interface to do what I would think to be a common and simple task.
Every user on Mac OS X has a short name. To list all of the short names on your Mac OS, you can run the following command inside Terminal:
'ls /Users/'
For me the command looks like:
find /Users/brian/ -exec sudo chmod +a# 0 ‘staff allow add_file,add_subdirectory,list,search,readattr,delete,delete_child, writeattr,writeextattr,file_inherit,directory_inherit’ ‘{}’ ‘;’