Entire "Macintosh HD" shared through SMB File Sharing

I have OS X 10.5.6 installed on my Apple MacBook. I recently enabled File Sharing (SMB). On my Windows XP laptop, navigating to \\macbook now shows the entire "Macintosh HD" as a shared folder. I wasn't even asked for login credentials for my Mac's user account.

File permissions, using the "Get info" function on the Macintosh HD show:

system: read & write
admin: read & write
everyone: read only

I don't know about anyone else, but this is a glaring security issue.

I don't want to tinker with messing with file permissions at the root of the drive, as I have a feeling that could cause some major chaos to all the subordinate folders.

Solutions?

MacBook, Mac OS X (10.5)

Posted on Mar 8, 2009 7:53 PM

Reply
Question marked as ⚠️ Top-ranking reply

Posted on Mar 9, 2009 5:30 AM

I have the same issue as NEGATiZE had, but I don't understand your explanation.

"You gave yourself permission to view the entire hard drive when you shared an entire account, typed in the password, and logged in using that username." what does this mean actually?

Can you kindly capture some screen shots in the file sharing System Preferences?

FYI, when I browse the network from Windows XP into my Mac, I can access the entire Macintosh HD & EVERYTHING else including shared printer and external drive etc. Is this normal? How can I prevent this? I want to allow specific folder to specific user only. Can this be done? Thanks.
7 replies
Sort By: 
Question marked as ⚠️ Top-ranking reply

Mar 9, 2009 5:30 AM in response to Barney-15E

I have the same issue as NEGATiZE had, but I don't understand your explanation.

"You gave yourself permission to view the entire hard drive when you shared an entire account, typed in the password, and logged in using that username." what does this mean actually?

Can you kindly capture some screen shots in the file sharing System Preferences?

FYI, when I browse the network from Windows XP into my Mac, I can access the entire Macintosh HD & EVERYTHING else including shared printer and external drive etc. Is this normal? How can I prevent this? I want to allow specific folder to specific user only. Can this be done? Thanks.
Reply

Mar 8, 2009 7:59 PM in response to NEGATiZE

You gave yourself permission to view the entire hard drive when you shared an entire account, typed in the password, and logged in using that username.

If you don't want to share the entire thing, then deselect the account sharing and just leave the main SMB sharing option enabled. You will then need to establish sharing only users or use your Mac OS account name and password, which will give you access to everything you have access to on the Mac as if you logged into your Mac directly.

Message was edited by: Barney-15E
Reply

Mar 8, 2009 8:41 PM in response to Barney-15E

But the help file does [what?] It makes no mention of sharing an entire hard drive's contents.

Wow. I guess OS X can't do any wrong.

The point I'm trying to make is that by default, this should NOT be the case. Not for my sake, but the average user that doesn't understand file permissions. Especially for an OS touted as "user-friendly".
Reply

Mar 9, 2009 4:29 PM in response to kevinyeoh

I don't have a picture sharing site account to use, so I can't post any screen shots. Hopefully, I can describe it well enough.

Say you have a user account called 'bob' on your Mac. On your Mac, bob is an admin user and therefore has access to your entire Mac. If you log into your Mac as bob, you can see everything.

Nothing changes if you log into your Mac from a Windows machine as bob. No matter how bob logs into your Mac, directly to the machine, from a windows machine on you network, or from a dumb terminal in the basement of a hangar on Area 51, bob will have the same access to your Mac.

In the File Sharing options, when you select the account for bob, the entire account is shared. You essentially said, "let 'bob' log into this machine using SMB."

If you just select the option to share files via SMB, you can set access to specific folders for particular users. You can even make up new users that don't have an account on the Mac, but can access folders that you specifically give them access to.

So, for what you want, don't select an account to share via SMB, just select "Share files and folders using SMB."
Now, at the bottom of the file sharing dialog, Add the folders you want to share. Choose the users you want to have access to those folders and set the type of access, Read & Write, Read Only, or Write Only. If you want to create a username and password to access those folders, without having an account on the Mac, Add a person and choose "New Person." That person will be a "Sharing Only" user. You can't log into the Mac as that user, but you can access the specific folders you have set up.
Reply

Mar 9, 2009 6:36 PM in response to NEGATiZE

NEGATiZE wrote:
But the help file does [what?] It makes no mention of sharing an entire hard drive's contents.

From the "Sharing files on your network" help file, item 2 (my emphasis added):
Users you have set up with accounts in Accounts preferences can access your computer by connecting to it over the network. *A user with an administrator account can access your entire computer.*


The point I'm trying to make is that by default, this should NOT be the case. Not for my sake, but the average user that doesn't understand file permissions. Especially for an OS touted as "user-friendly".

It has nothing to do with file permissions. It has everything to understanding a multi-user operating system like unix. Unix does not require you to be sitting at the physical machine to log into it. As a matter of fact, when it was developed, you didn't have a computer, you had a terminal that allowed you to log into the mainframe from anywhere there was a terminal connected to it.

Why would you give someone else your admin username and password?
Reply

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.

Entire "Macintosh HD" shared through SMB File Sharing

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