Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

DennisBlah

macrumors 6502
Original poster
Dec 5, 2013
485
2
The Netherlands
Hi all,

I'm in a little problem here. I made an application for all our users.
This application will connect to a fileshare through terminal like this:
mount_smbfs cifs://>username<:>password<@pathToShare ~/Public/.updateShare

This works fine, the app works fine. However when the app is finished it will unmount like it should.

The thing is when the app is finished, and I try to connect to a network share bij: Finder -> Go -> Connect to server
It seems like it tries to connect to the server I put in by using the username and password I used in the app.

Is there any plist or a cache which is saving these credentials ?
 
Last edited:

DennisBlah

macrumors 6502
Original poster
Dec 5, 2013
485
2
The Netherlands
Just because I found lots of the same question on other forums I reply on myself with a 'suitable' answer.

OSX stores your 'connect to server' credentials in a cache. You can view it by typing the following in the terminal
Code:
Klist

By removing this you will have to re-enter your credentials for your 'shares' which are not stored in keychain.
With the following command you can clear this cache
Code:
Kdestroy

Hopefully this will be of any help for other people facing the same issue

Cheers!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.