Duplicate/ghost SMB shares showing up?? help!!

Okay, so I am running Mac OSX Leopard 10.5.1, and my problem is as follows..
I used to use SharePoints when I was still running Tiger so that I could manage my SMB(samba) shares for my windows boxes and xbox(XBMC), but now since Leopard includes a SMB shares management preferences pane, I can no longer use SharePoints.. or I should say i no longer need it..

However, I have made a strange observation from using samba and sharing in Leopard.. Maybe this is a glitch..

So I am running 3 external HDD's, one firewire and two USB2.0''s (LaCie drives). I can share them all fine but my second usb 2.0 drive seems to show up as a duplicate SMB share when I add it.

For example, when I go to System Preferences > Sharing > File sharing; there won't be anything there yet until I specify what to share and what user gets access via SMB. However, before I even bother to share any folders.. the one USB drive is already being actively shared.. tho it is NOT listed in the sharing list for folders/drives.

Once I go to hit the "+" button to add that drive.. it'll show up as "drivename-1" (and this drive is forcing itself to be available to any user, regardless... so I can't hide that drive from any other user that shouldn't access it)
notice the "-1" at the end of the drivename of the usb drive.. So in other words, its trying to double share an already shared drive.. And I dunno why it won't unmount the original name and allow me to set proper permissions. How can I remove the duplicate share link for that one drive?? It doesn't happen to the other drives so I'm stumped..

Anything I can do in terminal to rectify this issue?? Like I said, I only got this share conflict with one usb 2.0 drive.. all other drives behave and share accordingly to the settings I specify.

I already looked inside /etc/smb.conf but can't find anything in there to get rid of the SMB share. Where does Samba actually store a reference of all smb shares??

Mac Mini (intel), Macbook (intel), Mac OS X (10.5.1)

Posted on Dec 30, 2007 5:50 PM

Reply
3 replies

Dec 30, 2007 6:16 PM in response to zerophyte

okay.. I did some tinkering and found out that all smb share links are stored in /var/samba/shares
I found the drive name that was shared before in that folder.. So I deleted the sharename out of that folder, problem solved.. lol.. BUT, once I try to share a certain folder or the whole drive again.. it'll come back, and once I try to un-share it.. the drivename will remain in that folder until I end up having to manually DELETE it again..

This problem does not present itself with other drives, so this does not make any sense at all..
If I just want to share a certain folder of that usb drive, it will automatically create a share for the ENTIRE drive as well, and I don't want it to do that.. >_< When I unshare the the specific folder inside the drive, it will also disappear inside /var/samba/shares except the drivename share itself stays there static..

So, there must be a glitch or reference somewhere else in my mac's configs that tells it to auto create a share of the whole physical drive regardless if its only one specific folder I want within???

Or are maybe my permissions out of whack on the drive?? Tho, when I run Disk Utility, the option to "Verify Permissions on disk" are greyed out so I can't click on it.

Jan 8, 2008 5:41 AM in response to zerophyte

Try using dscl from the command line to delete the ghost shares from /Local/Defaults/SharePoints. I wrote a post about it at:

http://www.installationexperiences.com/?p=81

Note:
"I may receive some form of compensation, financial or otherwise, from my recommendation or link."

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.

Duplicate/ghost SMB shares showing up?? help!!

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