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.

WINS workgroup resets every time I startup my MAC

Hi,

I m a new mac user.

I noticed that every time i switch off then on my mini, the remote pc s on my network can t access my smb shares.


After investigating i foud out that in fact at each startup, the WINS workgroup name i've set manually to "WORKGROUP" the time before. resets.


And according to the kdc.log file, here s the reason :

NTLM domain not configured

Anyway the /Library/Preferences/SystemConfiguration/com.apple.smb.server.plist is correct and the WORKGROUP appears right.


In fact, what happens, is that smb is launching too soon in the startup sequence (is that because my SSD causes my mac to boot up in less than 15 sec ?), and the network is not initiated when samba starts.


as a result, disabling/enabling file sharing makes my mac shares instantly available on all my PCs

also, typing the following command :

sudo touch "/Library/Preferences/SystemConfiguration/com.apple.smb.server.plist does the trick to.


But i'm fed up with doig that on every startup.

so I found the following script on the web, which should reset samba 60 seconds after startup.


<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.me.restart_smb</string>
<key>ProgramArguments</key>
<array> <string>/bin/bash</string>
<string>-c</string>
<string>sleep 60;touch "/Library/Preferences/SystemConfiguration/com.apple.smb.server.plist"</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>


I ve put the plist in /library/LaunchDaemons

but it's not working.


I'd like some help to automate the

touch "/Library/Preferences/SystemConfiguration/com.apple.smb.server.plist"


command at startup.

I tried compiling an app with that command in applescripteditor, but as it requests the "with admin privileges" tag, it prompts an asks for my password.


As I said, I only had a mac for 2 weeks now so I can not go further by my own.

Any help would be appreciated.


Thanks a lot.

Mac mini, OS X Mountain Lion (10.8.2), Late 2012, quad core, 1TB + OCZ SSD

Posted on Nov 16, 2012 5:26 AM

Reply
46 replies

WINS workgroup resets every time I startup my MAC

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