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 25, 2016 6:59 AM in response to zero7404

Anyone interested in putting themselves into potential danger (...well maybe not so dangerous....) could configure their Mac following the instructions given here. After wich SMB should be running as fast as AFP and without asking for credentials:


https://goo.gl/NjmYPY


BUT: I would first copy the file that you are about to configure (nsmb.conf). If you are not able to find that file, I would suggest not to mess around and use AFP instead, if that is able to create a connection without the issue. Because if you are not able to find the file you are also not aware of what you are doing......


The sign-in on SMB mounting is probably a security measure.

Oct 25, 2016 7:47 AM in response to StumpyBloke

You must have other issues going on because it does not crash Finder.


This is the new design to block automatic connections from things such has malicious code automatically connecting to network servers and spreading. Of course, it's annoying for those who have written scripts to automatically connect. It's not difficult to have it save your password but I can see why they would want this stopped before the user logged.


I would upgrade to the 10.12.1 but first be sure to move the contents of your user cache ~/Library/caches to the trash.

Reboot and empty the trash. Then install the upgrade/update.


I know there have been issues with Sierra for some people but this has been the best first release of a new OS that I have ever installed. None of our computers have had any serious problems with it compared to El Capitan, Mavericks, etc. Wifi, USB to my vinyl cutter and many other things all worked this time, and much else. I've been happy with it and I attribute much of that to deleting the user cache first (this is the first time I had done that before install). All of the systems accepted it with no problems, unless you count the annoying credential request.

Oct 25, 2016 9:37 AM in response to brycesteiner

IMO it's fine for Apple to build in some extra steps to make network connections more "secure," and make those default; but providing a way to "opt-out" of this behavior in a [simple] manner should be included.


It's not Apple's place to be our security nanny. Even Microsoft, who many deem to make the most insecure operating systems (whether that's true or not), gives us options to reduce security should we choose to take on the risk.

Oct 25, 2016 9:57 AM in response to Peter Almere

OK, so this is what happens from freshly logging in:


  • I load up Finder
  • Under Shared, it shows my NAS (QNAPNAS, QNAPNAS(AFP) and QNAPNAS(TimeMachine)
  • I select QNAPNAS by clicking it (assuming this uses SMB?)
  • It shows the shares
  • I double click a share and it instantly closes Finder and comes up with a box: 'The operation can't be completed because the original item for "whatever I clicked" can't be found.'
  • All I can do then is click OK on that box.


On my desktop I have some aliases to network shares on the same NAS. If I double click any of those, it asks me to log on with the saved credentials (ridiculous you have to do this) and that works. Then, I can go in to Finder and browse the network shares without issue.


Of course, as soon as I log off, restart etc, I have to repeat the above.


This happens on my iMac and Macbook Pro. Both are fully up to date.


EDIT: I notice in Finder it initially shows me connected to the NAS as Guest. Are you guys saying I have to now use the 'Connect As...' button first?

Oct 25, 2016 12:44 PM in response to StumpyBloke

StumpyBloke wrote:


OK, so this is what happens from freshly logging in:


  • I load up Finder
  • Under Shared, it shows my NAS (QNAPNAS, QNAPNAS(AFP) and QNAPNAS(TimeMachine)
  • I select QNAPNAS by clicking it (assuming this uses SMB?)
  • It shows the shares
  • I double click a share and it instantly closes Finder and comes up with a box: 'The operation can't be completed because the original item for "whatever I clicked" can't be found.'
  • All I can do then is click OK on that box.


On my desktop I have some aliases to network shares on the same NAS. If I double click any of those, it asks me to log on with the saved credentials (ridiculous you have to do this) and that works. Then, I can go in to Finder and browse the network shares without issue.


Of course, as soon as I log off, restart etc, I have to repeat the above.


This happens on my iMac and Macbook Pro. Both are fully up to date.


EDIT: I notice in Finder it initially shows me connected to the NAS as Guest. Are you guys saying I have to now use the 'Connect As...' button first?

First I would like to ask you if the volumes all have different names? 'QNAPNAS(AFP)' is the full name? If you have 3 volumes which are all called 'QNAPNAS' you should make sure their names are different. But I assume they are. Then please check the crashing one's 'Info". Select the volume and 'Command-I'. Then an information window should appear. In that window you can check if it is AFP or SMB. If it is SMB or if the info window won't open, check on your NAS what file transport method it is using. Is it supporting both SMB and AFP? If yes, check if your NAS can cope with using 2 methods at the same time.


Then also check if your NAS can handle more connections from the same IP address at the same time. I can switch that off on mine so if you accidentally switched it off, you might get this problem.


If all seems right you could delete your network setting, including WiFi, and passwords, delete them from keychain. (After you wrote them down!!) And before you restart your computer after having done that, go to the 'GO' menu in the finder select the 'server' menu and delete all the servers that you see there.


If all this does not help be sure to check again the settings in your NAS (are you sure SMB and AFP are both supported in the settings?), before you back up, clean install and restoring ONLY documents and programs but NOT your user account. Set that up new.


So now you have something to do........ ;-)

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.