Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

A fix for broken Windows' file sharing Network
I just worked my way through an interesting ordeal involving Windows file sharing and SMB. I was trying to select 'Windows File Sharing' in the Sharing system pref, but it wouldn't activate. I quickly checked Apple's support page on the issue and found I had already tried all the resolves (reconnecting to network, logging out, restart). I read a recent post on this site about checking the console to catch incoming errors. What I found was the following:
Starting SMB server
/System/Library/StartupItems/Samba/Samba: /etc/smb.conf:
  No such file or directory
So, after a futile Finder search, I used a utility to show hidden files and went hunting for the missing file. What I found where the file was supposed to be was a broken alias to the actual file. I hadn't hunted this deeply into the system before, so I didn't know yet that the actual file was supposed to be here. Well, after doing some research on the internet, I found that this indeed should be here. I'm stumped as to how the actual file was replaced with just an alias.

My first and simplest solution worked just fine: I have OS X installed on my FireWire drive, so I just changed my permissions for the etc folder on the affected volume, moved the clean file from the FireWire drive to the etc folder, and changed the permissions back (note the 'wheel' group). Now everything works fine again, and I even got a confidence boost thrown in.
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[11,978 views]  

A fix for broken Windows' file sharing | 2 comments | Create New Account
Click here to return to the 'A fix for broken Windows' file sharing' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A fix for broken Windows' file sharing
Authored by: jlgregg on Sep 17, '03 11:35:02AM

I had a similar problem with a corrupt /etc/smb.conf file, but the symptoms were different. SMB filesharing would start, but I couldn't connect from a Windows machine. There was no useful info in the console messages.

My solution was to just delete the /etc/smb.conf file (after making a copy just in case). After restarting SMB filesharing, everything was happy again. It seems the file is recreated based on the /etc/smb.conf.template file, though I'm not sure. All I know is that it worked, and I'm happy.

Justin



[ Reply to This | # ]
A fix for broken Windows' file sharing
Authored by: Trunkmonkey on Sep 17, '03 01:29:30PM

The locate command in your friend. :)

[dyn-002:~] sean% locate smb.conf
/private/etc/smb.conf
/private/etc/smb.conf.template
/private/etc/smb.conf~
/usr/share/man/man5/smb.conf.5
/usr/share/swat/help/smb.conf.5.html


[ Reply to This | # ]