Share folder on external hard drive formatted in AFPS over network

Hi


I am using a Mac Mini as a file server.

I added a Raid 1 external Hard Drive via USB-C.

The Hard Drive is formatted in AFPS.


Sharing a file on the external hard drive only works when the check box "Allow full disk access for all users" is checked.

Else wise I can't connect.


But whenever I then share a folder on the external Hard Drive, then this folder is accessible for all accounts on the server, even if the folder wasn't shared with that account.


So for example I will share


Folder 1

and

Folder 2

on the server.


I share Folder 1 with user 1 and Folder 2 with User 2,


User 1 and User 2 then still have full access to both folders on the external hard drive.


If I would do the same on 2 folders on the internal hard drive, then User 1 only gets to see Folder 1 and User 2 only gets to see Folder 2.


Is there any way to have the same behavior on the external hard drive as on the internal hard drive?



Posted on Sep 30, 2024 6:39 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 9, 2024 4:59 AM

By default, an external drive has "Ignore ownership" set. You can change this in the Finder under "Get Info" on the drive.

11 replies

Oct 1, 2024 4:10 AM in response to MacChristoph

MacChristoph wrote:

Thank you Barney-15E

That makes total sense.

I tried it out with a "sharing only" user and unfortunately it seems to be the same for the shares on external hard drives.

I did only share Folder 1 to the sharing only user, but he can see Folder 1 and Folder 2 once connected and has read/write permissions in both folders.

I wonder if I need to change the permissions on the external hard drive to only allow access to certain users or user groups instead. 🤔

I don’t have the ability to mess around with it right now, but I think you’re right about the permissions on the external drive. File sharing is not sharing out specific items to everyone. When you login remotely, albeit via file sharing, you have whatever access that user would have on that Mac. So if everyone is r/w on the external drive, then everyone will be able to read and write everywhere on the external drive. The file sharing set up will override the POSIX permissions on the drive with ACL‘s so you don’t necessarily have to give the sharing owner user specific permissions on the drive. If they’re all getting their own folder, then I would probably assign POSIX permissions to that folder for that user. The enclosing folder must have read permissions to everyone, or perhaps create a group and assign the group to that folder with read only.

Oct 9, 2024 4:35 AM in response to MacChristoph

MacChristoph wrote:

Thanks for your help, Barney.

Essentially I have the same issue.

I wonder where would be the best location to raise such an issue and try to get a fix or workaround.
If I should get any further with this, I will let you know.

You’d have to talk to Apple directly and you’re gonna go through a whole bunch of waste of time script execution with the first level person you talk to and maybe eventually you’ll get it escalated. https://getsupport.apple.com/

I submitted a fairly detailed bug report, but as is normal, I haven’t heard a thing back from Apple.


Sep 30, 2024 11:22 PM in response to Barney-15E

Thank you Barney-15E


That makes total sense.


I tried it out with a "sharing only" user and unfortunately it seems to be the same for the shares on external hard drives.


I did only share Folder 1 to the sharing only user, but he can see Folder 1 and Folder 2 once connected and has read/write permissions in both folders.


I wonder if I need to change the permissions on the external hard drive to only allow access to certain users or user groups instead. 🤔


Oct 1, 2024 12:34 PM in response to MacChristoph

It is the same whether internal or external. File sharing is not really sharing of files. It is merely remote login to the Mac. Whatever user you login with has all of the permissions they would have if they were sitting at the Mac and logged into their account. Users cannot edit other users files. They only have read access to other users files. To enable users to edit other users files you must set up an ACL to allow that. I’ll get to that when I produce some examples of how to set up your file system.


I’ll try to throw together a set of examples with screenshots such that you can create whatever you need, but I can’t do it right now.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Share folder on external hard drive formatted in AFPS over network

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