Skip navigation

Can't connect PC to OS X Mountain Lion Server

23430 Views 28 Replies Latest reply: Jan 15, 2014 9:22 AM by cmfselby RSS
  • Moises R - OMTBA Level 1 Level 1 (0 points)
    Currently Being Moderated
    Jan 19, 2013 11:39 AM (in response to Clemgill)

    Clemgill,

     

    I found your script incredibly useful but I'm getting an error message when trying to use it:

     

    error "System Events got an error: Can’t set process \"SecurityAgent\" to \"mypassword\"." number -10006 from process "SecurityAgent"

     

     

    Any ideas?

  • Clemgill Level 1 Level 1 (0 points)

    Hi,

     

    Did you type your own password at the begining of the script

    between the quotes, at the end of the following line:

    set Pass_word to "..."

    replacing the ... with your own password?

     

    Regs,

     

    Clemgill

  • Moises R - OMTBA Level 1 Level 1 (0 points)
    Currently Being Moderated
    Jan 20, 2013 7:08 AM (in response to Clemgill)

    Yes that's what I did, I don't know what the error message means.

  • johnthegreen1 Calculating status...
    Currently Being Moderated
    Jan 23, 2013 12:08 PM (in response to larry baltz)

    Larry, thank you.  I have scoured the net and could not get my mac to share with my win7 machine.  It had to have been an issue with user names though I thought having an account on each machine with the same exact user name and password would help, it didn't.  I did manage to get them to play nicely with another user name.  Thank you so much.  John

  • Axtremus Level 1 Level 1 (0 points)
    Currently Being Moderated
    Jan 30, 2013 12:17 PM (in response to Thomas Thaler1)

    Thank you, Thomas Thaler1. Your comments solved the issue I had with Mountain Lion Server exactly. Thank you very much!

  • Don Seher1 Level 1 Level 1 (120 points)

    Thomas Thaler1, My network settings match what you posted, yet we still have no access to ML Server from Win7. I have read that others just turned off Sharing, then turned it back on; hasn't worked for me. I have made SMB changes in Server, as others suggested elsewhere; hasn't worked for me. I have made SMB changes and AFP changes in Sharing, as others suggested elsewhere; hasn't worked for me. I have made the changes you suggested; hasn't worked for me. I'll keep searching...

  • Thomas Thaler Level 1 Level 1 (30 points)
    Currently Being Moderated
    Feb 8, 2013 1:54 PM (in response to Don Seher1)

    Try this one.

    Maybe it does help you and solve your problems.

     

    BUT FIRST TRY WITHIN AN TRIAL ENVIRONMENT BEFORE GOING LIFE!!!

     

    Also keep an eye on the networking stuff like Switches, Hubs, Firewalls, Routers, Bridges, .....

    I did solve some very strange problems in the past by exchanging such devices or upgrade their firmware.

     

    Regards

    Thomas Thaler

  • feinberj Calculating status...
    Currently Being Moderated
    Aug 15, 2013 5:57 AM (in response to Clemgill)

    I'm having the same problem with my Mac Pro running Mountain Lion in my Windows environment at work - PC clients can't connect.  Turning File Sharing off and then back on again after a reboot completely solves the problem.  Fortunately, the machine is very solid and I rarely reboot.  In fact, I mainly reboot when I'm putting in a new hard drive or a new PCI card!

     

    Clemgill - I would really like to use your AppleScript so that I can just have it run whenever I reboot the computer.   However I am NOT running server - just "regular" Mountain Lion.  Perhaps you could publish another script that works with non-server Mountain Lion?  I have tried editing your script but I can not get it to work on my machine.

     

    Thank you,

     

    John F

    New York, NY

  • Clemgill Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 18, 2013 9:20 AM (in response to feinberj)

    feinberj

     

    I am actually not running server either, I developed the script on OSX 10.8.4.

    Make sure you adapt the initial lines of the script to your own setup and to the English version.

    Let me suggest this, it worked on my computer when I set it up in English language.

     

    set Sharing_pane to "Sharing"

    set File_sharing_Off to "File sharing: Off"

    set File_sharing_On to "File sharing: On"

     

    #Change the "…" in the line hereafter with your own password while keeping it within the quotes. So the sequence "…" should look like "xyztuv" if xyztuv is your own password

    set Pass_word to "..."

     

     

    Regards,

     

    Gilles.

    Paris.

  • feinberj Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 18, 2013 6:18 PM (in response to Clemgill)

    I've gotten it to work!

     

    I did indeed add English language strings to the three variables, and I have set my pass_word variable for my own system. 

     

    I had to make a few other changes for the script to work on my system:

     

    • The "File Sharing" checkbox is the third service (row 3) on my Mac.  In a few places, I made the change to Row 3:

     

              click checkbox 1 of row 3

                 (in your script it's click checkbox 1 of row 2)

     

    • I added a delay immediately after Click Button 4 (which clicks unlock), and I was able to remove the delay before clicking button 2 of group 2.  Without the new delay, it was trying to type the password before the password request box had opened, and I got an error.  See the changes below:

     

                # Unlock modifications

                click button 4

     

                delay 0.5   # I needed to add this line

     

               # type in your user password

                        tell application "System Events" to tell window 1 of process "SecurityAgent"

                                       set value of text field 2 of scroll area 1 of group 1 to Pass_word

                     # delay 1   # I was able to remove this line

                     click button 2 of group 2

                                       delay 0.5

                        end tell


    Thank you again for posting the script.  It's a big help, given that I do need to access my Mac from various windows machines in my work environment.

     

    John F

    New York, NY

  • Sandy- Calculating status...

    Hello,

     

    My apologies for jumping on this thread.. though several months down the line. We have a mac min os x server, and I am having difficulty connecting to it from my windows 8 pc. I had no trouble, or little trouble I should say, connecting to my pc via the mac. I tried going through Run with the \\server\share, also the mac doesn't show in my network either. I new to Mac and this is extremely frustrating! Any help would be greatly appreciated.

     

    Thank you

  • sc46 Calculating status...
    Currently Being Moderated
    Nov 30, 2013 10:31 AM (in response to Sandy-)

    Another problem with PC to Mac share access is that the bloody thing limits the upload size (from PC to Mac). It stops at ~ 2Gb & "There is a problem..." message pops up!

     

    Try to copy anything bigger to Mac from Windows PC & it will error out each time. Anything smaller & all is fine.

     

    Just plain silly!

     

    Seb

  • sc46 Level 1 Level 1 (0 points)
    Currently Being Moderated
    Dec 1, 2013 6:44 AM (in response to sc46)

    In fact it looks like it actually never worked by default - http://hints.macworld.com/article.php?story=20100212135148675

     

    SMBUp is definitely the way to go instead of the Apple garbage - https://discussions.apple.com/message/21639815#21639815

  • cmfselby Calculating status...
    Currently Being Moderated
    Jan 15, 2014 9:22 AM (in response to larry baltz)

    I could kiss you for this info!!!!!  I've been trying sooo hard to figure this out - but evertime I search - I would get connection tips for a Mac and WINSERVER........you have made me the happiest girl in the office

1 2 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (2)

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.