Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

After mounting an smb shared drive and putting in my username and password, OS X will ask me if I want to save password to keychain. I can say yes but it will not save it. The drive has also been added as a login item.

My username requires the domain, so it's like: mydomain\firstname.lastname

On login, the window pops up and has forgotten the mydomain\ leaving firstname.lastname and the password field is, of course, blank.

Any help would be greatly appreciated!

share|improve this question
    
What happens when you try to save the password to the key-chain? –  MrDaniel Aug 9 '12 at 14:53
    
Also what did you add into the Login Items? –  MrDaniel Aug 9 '12 at 14:54
    
Nothing. It logs in successfully but on next startup the window pops up again asking for password, username field is pre-populated with firstname.lastname. For Login Items I click the plus and select the share from Devices in the Finder box that opens. Thanks! –  fuddyq Aug 10 '12 at 14:15
add comment

migrated from serverfault.com Aug 9 '12 at 14:47

This question came from our site for professional system and network administrators.

2 Answers

You can create a link file with the username and password, and put that in the login items.

In Finder select Connect to Server and enter:

smb://domain\username:password@serveraddress

Don't click connect or press enter, just highlight the whole address and drag to desktop (or anywhere else), and it will save as a file. You can rename it, if you like.

Then from System Preferences, Users and Groups, Login items, add the file you just created.

share|improve this answer
add comment

Try making an alias of the network drive that you would like to connect to and store that in the Login Items.

  1. Connect to the device / computer using the Finder. (Note don't connect as a guest)

  2. Connect to the share or drive on that source, and open it using the Finder.

  3. With that window open showing the contents of that connected share click the network share disk icon next to the window name, and drag it to the desktop while holding down the option+Command keys.
    Note: The icon just dragged to the desktop should have a tiny black arrow in the lower right corner, indicating that it is a alias.

  4. Add the Alias to your log in items.

Note: If the problem persists, try removing the saved password for that share in the Keychain Access Application, and repeat.

share|improve this answer
    
After tinkering with Keychain and logging in and out a dozen times, I think I'm ready to give up. Thanks for your response MrDaniel. No matter what I do it does not like the domain\ portion of the login and forgets it every time. Strangely, even if I've removed it from login items the drive will still attempt to connect and fail. But if I Finder > Go > Connect to Server and click it in the favourites, BAM, connected. Thanks again! –  fuddyq Aug 13 '12 at 16:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.