Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Windows file sharing

Hello,

It's probably a newbe question but I cannot find an easy answers.

I have two users User1 and User2, both accessing the Mac os x server from Windows 7 clients (with their own login)


I want User1 to have full access (including edit and delete) to the files of Folder1 and Folder2

I want User2 to have full access (including edit and delete) to the files of Folder2 only.


Now if User1 create a file on Folder2 I want User2 to be able to still edit and delete the file (and the other way round).


What kind of permission should I set on Folder1 and Folder2 to make this possible. The problem that I am facing is that if one user creates a file on Folder2, the other get a permission denied error every time that he wants to edit the file.


Kind Regards

Luca

Mac mini, OS X Server

Posted on Nov 25, 2013 10:38 PM

Reply
Question marked as Best reply

Posted on Nov 26, 2013 3:46 AM

This is achieved by using ACLs (access controls). Normally, a folder is assigned a parent ACL and this set of permissions is cascaded through all sub folders. You are looking to do something slightly more advanced. This can not be solely accomplished from the File Sharing pane but we will start there.


First, I would encourage you to create groups and set your permissions based on groups. If you use users, and you need to add people, you will be forces to propagate permissions each time you change users.


So in addition to your description above, create Group1 and place User 1 in that group. Then create Group2 and place user2 in that group.


Now, assuming you have created the share, setting an ACL at the root of the share may make no sense. However, assuming that you have more than just /ShareRoot/Folder1 and /ShareRoot/Folder2 in the share, setting a parent ACL probably makes sense.


Select File Sharing. Select your Share Point and press the Pencil button to edit. Press the + button to add two additional ACEs (access control entries) to the sharing pane. Set the first to Group1 with read write and the second to Group 2 with read write.


User uploaded file


Now this is not enough. This will handle the entire share, allowing members of both groups to have read and write access to ALL children and descendants. So now let's lock down the sub folders.


In Server.app, select you server from the top of the left column. Click the Storage tab on the right pane.


Now, drill down to find your parent share folder and select it. From the Gear menu button, choose Propagate Permissions... and apply your ACL set above to all current content. Yes, this will open all folders to the members of Group 1 and 2. We will restrict.


Once the propagate is done, drill into your share folder and select the folder you want to protect.


You want to prevent User 2 to be removed from access of Folder 1. If so, select Folder1 and choose Edit Permissions from the Gear button menu. When the sheet appears, choose Make Inherited Entries Explicit from the Gear button menu.


User uploaded file


This will change the ACLs in the list from gray to black. This breaks the inheritance from the parent share folder. Now remove Group 2 from the list AND change the Others permissions to NONE. Press OK to return to the Storage tab.


Now, with Folder 1 still selected, go back to the Gear Button menu and choose Propagate Premissions for this folder and check all boxes (really, you just need acl and other)


User uploaded file

Now test from a workstation. User1 (and anyone else in the Group1 group) will see this:


User uploaded file


User 2, and anyone in the Group2 group will see this:


User uploaded file


Now, this assumes that there will be other data in the share. If folder one and folder two are the only folders, then you could reverse this process. Instead of giving group1 and group2 access to the parent and then removing group 2 from folder 1, you could give group 1 access to the parent and then add group 2 to folder 2.


Hope this helps. Permissions are a tough thing for new admins. The tools are all there, they are just in multiple locations with different abilities.



R-

Apple Consultants Network

Apple Professional Services

Author "Mavericks Server - Foundation Services" :: Exclusively available in the iBooks store

3 replies
Question marked as Best reply

Nov 26, 2013 3:46 AM in response to S_eye

This is achieved by using ACLs (access controls). Normally, a folder is assigned a parent ACL and this set of permissions is cascaded through all sub folders. You are looking to do something slightly more advanced. This can not be solely accomplished from the File Sharing pane but we will start there.


First, I would encourage you to create groups and set your permissions based on groups. If you use users, and you need to add people, you will be forces to propagate permissions each time you change users.


So in addition to your description above, create Group1 and place User 1 in that group. Then create Group2 and place user2 in that group.


Now, assuming you have created the share, setting an ACL at the root of the share may make no sense. However, assuming that you have more than just /ShareRoot/Folder1 and /ShareRoot/Folder2 in the share, setting a parent ACL probably makes sense.


Select File Sharing. Select your Share Point and press the Pencil button to edit. Press the + button to add two additional ACEs (access control entries) to the sharing pane. Set the first to Group1 with read write and the second to Group 2 with read write.


User uploaded file


Now this is not enough. This will handle the entire share, allowing members of both groups to have read and write access to ALL children and descendants. So now let's lock down the sub folders.


In Server.app, select you server from the top of the left column. Click the Storage tab on the right pane.


Now, drill down to find your parent share folder and select it. From the Gear menu button, choose Propagate Permissions... and apply your ACL set above to all current content. Yes, this will open all folders to the members of Group 1 and 2. We will restrict.


Once the propagate is done, drill into your share folder and select the folder you want to protect.


You want to prevent User 2 to be removed from access of Folder 1. If so, select Folder1 and choose Edit Permissions from the Gear button menu. When the sheet appears, choose Make Inherited Entries Explicit from the Gear button menu.


User uploaded file


This will change the ACLs in the list from gray to black. This breaks the inheritance from the parent share folder. Now remove Group 2 from the list AND change the Others permissions to NONE. Press OK to return to the Storage tab.


Now, with Folder 1 still selected, go back to the Gear Button menu and choose Propagate Premissions for this folder and check all boxes (really, you just need acl and other)


User uploaded file

Now test from a workstation. User1 (and anyone else in the Group1 group) will see this:


User uploaded file


User 2, and anyone in the Group2 group will see this:


User uploaded file


Now, this assumes that there will be other data in the share. If folder one and folder two are the only folders, then you could reverse this process. Instead of giving group1 and group2 access to the parent and then removing group 2 from folder 1, you could give group 1 access to the parent and then add group 2 to folder 2.


Hope this helps. Permissions are a tough thing for new admins. The tools are all there, they are just in multiple locations with different abilities.



R-

Apple Consultants Network

Apple Professional Services

Author "Mavericks Server - Foundation Services" :: Exclusively available in the iBooks store

Windows file sharing

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.