Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

migrated from Aug 9 '12 at 14:47

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

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

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

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:


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
I'm having the same problem and attempting to follow your directions. Highlighting the address does not allow me to drag it to the desktop. I attempted dragging favorites and this too does not work. Perhaps I'm misunderstanding, but I can't seem to drag anything from the 'Connect to Server' window. – Fyrefly Jul 29 '14 at 15:09

I have had the same problem, and I have had it for ages. I eventually got rid of it by having a close look at the entries saved in the keychain - I actually found two relating to that server - and deleting them. (Keychain Access in Programs > Utilities is the tool for that.)

Once the botched entries were removed from the keychain, I could save my login credentials. Dragging the share to the sidebar in Finder, or to the desktop, also worked all of a sudden (it didn't previously).

share|improve this answer

There may be a corrupt entry for that server in the Keychain. Delete the entry for that server from KeyChain Access, log out and back in, and try saving it again.

share|improve this answer

Your Answer


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.