You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

File Sharing is sharing too much!

I have a strange problem with File Sharing. I'm sharing exactly one folder, but when I find the Mac that's sharing the folder from another Mac, I see the folder I shared *AND* I see the entire home directory of another user account also shared -- and that shared home directory is *writable*. I don't understand why this is happening.


Details:


I have a folder "/Users/Shared/Scanner Inbox" that I have added under File Sharing (System Preferences | Sharing | File Sharing). See screen shot:


User uploaded file

When I brows "MacMini" from my MacBook Pro, I see "Scanner Inbox", but I *also* see "wasserham", which is the home directory for one of the login accounts on "MacMini". Here's the screenshot from the MacBook Pro, browsing MacMini:


User uploaded file


I'm not even logged in as user "wasserham" on the MacBook Pro. This doesn't make sense. Can anyone offer some hints about what I've done wrong, and how I can stop this insecure over-sharing?


Thanks!

Posted on Jul 27, 2016 11:09 AM

Reply
Question marked as Top-ranking reply

Posted on Jul 28, 2016 12:05 PM

I have solved the problem on my own: On my MacBook Pro, I explicitly disconnected from the MacMini, and then reconnected, still as user "tauchris", which has Administrator privileges. Once I did that, the "wasserham" home folder share disappeared, and was replaced by "Macintosh HD", through which I can browse everything. When browsing down into other users' home directories from the "Macintosh HD" share, I was correctly denied access into folders owned by other users with permissions set to exclude group/other access. So, now things look as they should have looked in the first place, and all is well.


I read this positive proof that there was some bug in file mounting or file sharing, which was cleared up by essentially resetting the remote mount (by disconnecting and reconnecting, without making any other changes on either the client or the server).


Linc, I appreciate your having taken the time to respond, despite the fact that your comments sounded pompous and dismissive, and that your advice was ultimately incorrect.

9 replies
Question marked as Top-ranking reply

Jul 28, 2016 12:05 PM in response to Linc Davis

I have solved the problem on my own: On my MacBook Pro, I explicitly disconnected from the MacMini, and then reconnected, still as user "tauchris", which has Administrator privileges. Once I did that, the "wasserham" home folder share disappeared, and was replaced by "Macintosh HD", through which I can browse everything. When browsing down into other users' home directories from the "Macintosh HD" share, I was correctly denied access into folders owned by other users with permissions set to exclude group/other access. So, now things look as they should have looked in the first place, and all is well.


I read this positive proof that there was some bug in file mounting or file sharing, which was cleared up by essentially resetting the remote mount (by disconnecting and reconnecting, without making any other changes on either the client or the server).


Linc, I appreciate your having taken the time to respond, despite the fact that your comments sounded pompous and dismissive, and that your advice was ultimately incorrect.

Jul 27, 2016 1:46 PM in response to Linc Davis

Thanks for the reply Linc. I am indeed connecting to the fileserver host (MacMini) using an account that has admin privileges on that box. But why do I only see this one account's home directory? There are other accounts on that same host (some with admin, and some without), which are not showing up? Is it showing the "wasserham" home folder because that user owns the "Scanner Inbox" folder that I've shared?


And in any case, is there any way to stop "wasserham" from showing up? It's strange-- I have more privileges through the network mount than I do when I'm logged directly into MacMini as admin. I.e., when I'm directly logged in (as an admin-privileged user), I can't even look inside subfolders of the "wasserham" home folder (other than by opening a shell and using "sudo", which is logged). But over the network, I can not only look through every file in the "wasserham" home folder and all its subfolders, but also directly edit files there-- even if the file permissions are 0700 or 0500 (no perms for group/other). This seems wrong, or at the very least, inconsistent with generally-accepted security practices for shared folders... I sure would like to stop it.

Jul 28, 2016 6:07 AM in response to Linc Davis

Thanks again, Linc. I'm afraid this doesn't answer the question.


Let me try asking it a different way. On my MacMini, I have two login accounts with administrator privileges, and two "standard" accounts without admin privileges. The standard/non-admin accounts are "wasserham" and "standardsam". (I just created "standardsam" to help explain the issue.) When I connect to my MacMini from another computer using an administrator login, I see the folder I have explicitly shared (Scanner Inbox), and I see Standard Sam's Public Folder (and only his public folder). But for "wasserham", I see the entire home directory, and I have full privileges to read, write, create, and delete anything anywhere in "wasserham".


User uploaded file


So the question is Why? I can't be simply because I'm using an administrator account-- if that were true, I should be able to see Standard Sam's entire home folder, but I cannot.


Thanks for your help! Looking forward to hints or advice from anyone who knows what's going on here. 🙂

Jul 28, 2016 11:11 AM in response to tauchris

I should be able to see Standard Sam's entire home folder

No, not if the admin user doesn't have permission to read it.

So the question is Why?

That's not a question I can answer. Only Apple developers could answer it, and they're not here. Evidently you don't like the way they designed file sharing. I made a suggestion as to how you can make it work the way you want. That's all I have to offer. Good luck.

Jul 29, 2016 7:17 AM in response to tauchris

Having multiple logins can lead to unexpected results with file sharing, disconnecting or rebooting can help, sometimes it is not clear that the Finder still has an active login to a server.

Your screenshots show you were logged in via a gmail account initially, then via the OS X username later - I don't know what bearing that has but multiple logins can confuse the issue.


If you want better control of shares consider running OS X server, you can enable or disable home folder sharing etc.

Jul 29, 2016 7:24 AM in response to Drew Reece

Thank you Drew-- I didn't notice that I was connected with different credentials before and after the disconnect. This makes some sense. The gmail creds tell me I must have connected with my AppleID at some point (though I don't recall having enabled that). I use the same AppleID for iCloud in the "wasserham" account, so it makes some sense that I'd have access to that home folder. However, I also use that same AppleID for iCloud in two other accounts on the MacMini, and they did not show up. So, your observation is very helpful, and I think you have gotten me much closer to the truth than anything else I've seen or done thus far. But it's still a bit mysterious and inconsistent.


In any case, disconnecting and reconnecting did resolve this issue completely. Thanks!

File Sharing is sharing too much!

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