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.

macOS Sierra always prompts for credentials for network drives

At home we have several Macs that mount, on login, some SMB network drives from various servers (OS X Server and Synology NAS). The credentials (username and password) for the network drives are stored in the user's keychain by way of the 'remember this password in my keychain' option the very first time the drives was ever mounted. As a result a command like 'mount' command successfully mounts the drives without the user needing to interact with an authentication dialogue. This has been working just fine for the longest time an all the way up through OS X 10.11.6.


In Sierra, any attempt to mount a network drive always pops up the authentication dialogue. The password may be prefilled (presumably from the keychain) but the user still has to respond to the dialogue by clicking OK. This is a huge problem for me as it breaks loads of automation scripts that I have that rely on using 'mount' (the problem is not specific to mount however; the same issue occurs if you use something like Finder's 'Connect to Server' command).


I've tried deleting all the 'network password' keychain entries so that they get re-creqted (they do) but the problem behaviour still occurs.


Anyone know if this is a bug or by design?

MacBook Pro with Retina display, OS X El Capitan (10.11.5)

Posted on Sep 24, 2016 10:34 AM

Reply
107 replies

Oct 30, 2016 9:13 AM in response to aktivomat

Just to complete this solution:


If you want to mount several shares of one server maybe you have to do this workaround:


1. Open your keychain app and delete the "key" of your server.

Only for background-information: I'm quite sure if you watch the key-preferences (double-click) at the point "location" there is this *one* share at the end. like: smb://servername._smb._tcp.local/sharename


2. Go to Finder, open a window and click your server on the left (NOT the share!!!) and then click "connect as..." in the window and login with your information. So a key should be key within keychain should be generated which is only smb://servername._smb._tcp.local/ (without the sharename... please check within the keychain app)


3. Now all shares in the dock will be automounted


By the way: it is not enough just to delete the sharename out of the key! You have to generate a new key.

Oct 30, 2016 1:50 PM in response to brycesteiner

Ok, this "workaround" only works for automount at start/restart. If the Mac is turned on already and the server (or the shares) aren't mounted it won't work without authentification.


Anyway... i already heard now of some people having this same behavior as you even with automount at startup (only globe and no automount). And for others (like me) it's working perfect. Maybe it depends on the server settings and kind of connection. I don't know. Sorry... The only thing you can try if you want is to delete the key again and generate a new one WITH the share.

Oct 31, 2016 9:21 AM in response to Peter Almere

Hi Peter, thank you for your very comprehensive reply, I really appreciate it.


As nothing has changed on my NAS but this issue appears on all of my Macs (3) and others are reporting the same problem I'm going to sit it out for a while and see if Apple (assuming they aren't too busy ripping off people with the new (yet old) MacBooks) get their collective finger out of their butts and sort out the bug. Again, thanks for your help.

macOS Sierra always prompts for credentials for network drives

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