Skip navigation

WINS workgroup resets every time I startup my MAC

5679 Views 40 Replies Latest reply: Feb 6, 2014 2:23 AM by Baphi RSS Branched to a new discussion.
1 2 3 Previous Next
MrTweety Level 1 Level 1 (0 points)
Currently Being Moderated
Nov 16, 2012 5:26 AM

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
  • iDeviceDreamer Level 1 Level 1 (0 points)
    Currently Being Moderated
    Feb 11, 2013 11:15 AM (in response to MrTweety)

    MrTweety, you are my hero!!!

    Hours of search the web are over...

     

    I put your script modified with sleep 15 with following steps:

    1. Open Finder - GoTo Folder - /library/LaunchDaemons

    2. Copy com.me.restart_smb.plist to /library/LaunchDaemons

    3. Open Terminal

    4. cd /library/LaunchDaemons

    5. sudo chown root:wheel com.me.restart_smb.plist

    6. sudo chmod 644 com.me.restart_smb.plist

    7. Close Terminal and restart Mac

     

    That's it!!! Now after restarting SMB shares are working fine!

     

    Regards Michael

  • Skeetinator Level 1 Level 1 (0 points)

    I am running 10.7.5 with all of the current patches and if you're experiencing this issue, do what this page says.  I have had no issues since I set this script up. I am concerned that Apple hasn't seen to address this as part of a 10.7.x patch but this work around is awesome. 

     

    Hey Apple... please post here when you all decide to issue a repair for this behavior.

     

    Thanks Michael and Mr. Tweety!  You guys kick butt.

  • Eric Root Level 6 Level 6 (13,850 points)
    Currently Being Moderated
    Mar 17, 2013 1:25 PM (in response to MrTweety)

    Apple doesn't read these discussions.

     

    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.


    Feedback

  • ArctiX-Arts Level 1 Level 1 (0 points)
    Currently Being Moderated
    Mar 23, 2013 7:15 AM (in response to MrTweety)

    MrTweety THANK YOU!

     

    This had me absolutely scrambled after installing my SSD last week!

    There seems to be many timing issues with how things are loaded on startup.

    I also had to use this method for making my magic trackpad work again, instead of waiting 5 minutes for bluetooth to reconnect.

    So for those who are having bluetooth startup issues, use exact same approach though in the plist replace:

     

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

     

    with:

     

    launchctl load "/System/Library/LaunchDaemons/com.apple.IOBluetoothUSBDFU.plist"

     

    This can also be done with any of the system launchdaemons if the ssd is too fast!

     

    Thanks again MrTweety!

  • Sidney Bristow Level 1 Level 1 (70 points)
    Currently Being Moderated
    Mar 25, 2013 6:25 AM (in response to MrTweety)

    Guys,

     

    I hope you don't mind, I really don't know how to make a script.  Do you mind sharing it to me?  Pls email it at mark143@gmail.com

     

    I would really appreciate this.  I have been pulling my hair trying to figure this out

  • ArctiX-Arts Level 1 Level 1 (0 points)

    I've just sent you an email with the script attached.

    Let me know how you go :)

  • Barney-15E Level 7 Level 7 (33,285 points)
    Currently Being Moderated
    Mar 26, 2013 3:44 PM (in response to MrTweety)

    This bug existed a long time ago. I thought it had been fixed, but maybe it has resurfaced and is not the same thing.

     

    In the past, if you duplicated the Automatic Loction in Network preferences, then deleted the original (rename the new location as you see fit), it would keep the WINS settings through restart.

  • alehof Level 1 Level 1 (0 points)

    Hello Mac friends,

    many thanks for the workaround.

    It works fine and I'm absolutely happy with this

     

     

    Greetings,

    alehof

  • PeterPeety Level 1 Level 1 (0 points)
    Currently Being Moderated
    Apr 14, 2013 9:22 AM (in response to MrTweety)

    Tx for sharing this Mr. Tweety. I am using a SSD on my old MacPro. Unfortunately it will not upgrade to Mountain Lion, so I would love to get this working the way you describe it. I am just not a very sophisticated guy on this, so I do not understand in detail what you are doing.

     

    Are you using the Apple Script Editor to do this? Or is it just a PHP-File? Could you please explain what file name you save it with, where you save it and if you use it in the Start-Objects? I am totally puzzled and am very grateful for any help here. Maybe you can just list the corrected script again also. Sorry for this bother but I am having the same trouble with the sharing and I would love to solve it without installing Samba 3 (cause I got no Unix knowledge).

     

    Regards, Peter

  • Jabbanz Level 1 Level 1 (0 points)
    Currently Being Moderated
    May 10, 2013 1:20 PM (in response to MrTweety)

    Hi,

        Could some please email me the script as I also not sure how to do this.

    Jabbanz@icloud.com

    Cheers

    Jared

  • raily74 Level 1 Level 1 (0 points)
    Currently Being Moderated
    May 23, 2013 1:17 PM (in response to MrTweety)

    Hi MrTweety,

     

    i don't know how many hours i've spend to get this working for me. My Konica Minolta bizhub C25 should send scans via smb and Mac OS causes same error.

    Could anyone of you please email this script to me? This would be great! e-micha@gmx.de

     

    Thank you very much!

     

    Regards, Michael

  • raily74 Level 1 Level 1 (0 points)
    Currently Being Moderated
    May 23, 2013 2:03 PM (in response to MrTweety)

    Thanks! It's all done. I've coppied the text into SK Edit and saved it as a plist.

     

    Now it works!!!

  • Anthony W. Level 1 Level 1 (15 points)
    Currently Being Moderated
    Jun 10, 2013 5:16 PM (in response to MrTweety)

    I would also like to add that this fix, does in fact work for Mountain Lion 10.8.4. I was hoping to see this resolved with the .4 but sadly it is not.

    Applied the said fix and it works GREAT!! Thanks for the find and also for sharing with the world! 

1 2 3 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (1)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.