4

We have our work drive (let's call it Drive2014) and we have our archive drive (Drive2013). Every file on Drive2013 is read-only and must remain that way. When I drag a file from Drive2013 to Drive2014, I need the file to inherit the permissions from it's new home on Drive2014.

I tried How do I use chmod on a Mac to make new files inherit parent directory permissions? but this is only applicable after the file has been copied.

Someone mentioned that what I want to do is feasible through Apple's Server Admin Tools. I'm running the latest version of OS X Mavericks Server all up to date.

3

What you need to use is ACLs (instead of POSIX) permissions. Luckily, you don't need Mac OS server to use ACLs. They are available right from the Terminal of any recent Mac OS X version. From Terminal, you will simply use the "chmod" command to apply ACLs to your Drive2014. The ACL command you will use should include ",file_inherit,directory_inherit,".

Full details of the "chmod" command are available here: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/chmod.1.html

And, the perfect solution to your question (with command examples) has already been answered well here: How do I use chmod on a Mac to make new files inherit parent directory permissions?

Make sure to read that post to the end as they have made a few corrections along the way.

  • Thanks for your answer, if I want to add this to all of the usergroups, can I just use, group:* or do I have to manually do it for each one? – user2287474 Jan 20 '14 at 16:57
2
  1. Open Server.app and select your server from the services list.
  2. Go to the Storage tab.
  3. Browse to the folder location that you wish to inherit permissions from.
  4. Click the gear at the bottom, and select Propagate Permissions…
  5. Choose the permissions you wish to propagate and click OK.

  • Thanks for the speedy answer, I'm going to try this shortly! – user2287474 Jan 17 '14 at 17:24
  • Worked so great for me! Thanks a thousand times! Addition: New subfolders still show the "wrong" "Sharing & Permissions" in Workstations "Get info" but permission with ACL seem to work as expected. So for now I just ignore the "Get info > Sharing & Permissions". – Marc Jan 4 '15 at 12:05
1

sudo serveradmin settings smb:directorymask = 775
sudo serveradmin settings smb:creationmask = 775

1

I found a simple solution that allows you to designate a permission to parent folders and ensure that all contents will inherit those permissions. In your case, you want two parent folder with distinct sharing permissions (Drive 2013 and Drive 2014 folders).

  1. On your Mac, right click on the desired parent folder and select "Get Info."

  2. You may have to click the padlock icon located at the bottom right of the info screen and enter the admin password to make changes.

  3. Make the desired revisions to the sharing permissions, and remember that the next step will propagate those sharing permissions into every file and subfolder contained within the parent folder.

  4. Click on the utility icon at the bottom of the info screen (shaped like a gear) and click "apply to enclosed items." The system will notify you that all content within the parent folder will inherit the same sharing permissions, and this is what you want.

You can follow the same steps for both the 2013 and 2014 folders and set different permission for each. If you drag a file from the 2013 folder and drop it in the 2014 folder, the file will inherit the sharing permissions of the 2014 folder.

This link may explain this better than I did: https://support.apple.com/kb/HT1549

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .