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

elgato2024

macrumors member
Original poster
Dec 4, 2019
66
3
so I login with userA to some server. (cmd-k in finder)
i leave the remember passwort checkbox unchecked.

next, I want to login with userB to same server.
I cannot cause it automatically logs in with userA again.

I find no proper entry to delete in keychain.
there is one entry for that server but the account and password fields are empty.
and deleting it does not make the OS ask for userid/passwort again.

only a system restart makes it forget the credentials of userA.

please advise, how do I get macOS14 to stop automatically remembering my login-data?
thank you.
 
Starting from the info on this page:

A typical file-sharing URL looks like this:
smb://192.168.1.44/sharename

The IP-address will be one for your network. It might also be a ".local" domain-name.

I next looked at the components of a URL:

The "authority" component has sub-parts, one of which is userinfo. The userinfo part consists of 1 or 2 sub-parts. The required part is the username; the optional part is a password. If you omit the password, you might be prompted for it.

So putting this all together, try connecting to a URL that looks like:
smb://userB@192.168.1.44/sharename

This is just a guess, based on how URLs are designed to work. I don't know whether your version of Finder can work with URLs that contain a username part. It might be informative to have it save a username & password in Keychain, then look at it using the Keychain access app, to see how it's stored.

If this does work, you might need to have userA and userB versions of the URL. The Terminal command 'open' will accept an SMB URL and try connecting to the server.

The only other approach that comes to mind is to make another user account on the Mac, use Fast User Switching to log into it, then open a userA connection in one account and a userB connection in the other account.
 
  • Like
Reactions: Shirasaki
So putting this all together, try connecting to a URL that looks like:
smb://userB@192.168.1.44/sharename


thank you for that idea.
but that does not work anymore, either.
if still just logs in to userA without asking for authorization.

that is a malfunction, right?
how does the system log in without me telling it to remember the credentials in the keychain?
 
The Finder might keep the most recent login in a Recent Items list. Or it might be in a more ephemeral list. Try a Finder Relaunch and see what happens. Then try setting the Recent Items length to 0, relaunch Finder, see what happens.

I don't know if it's a malfunction or not. It would depend on how Apple has designed it. They could easily say "working as intended" if they have no intention of supporting usernames in URLs.
 
finder relaunch does not help. seems like only a sys restart does.

alas. this used to be clear cut and working as it is supposed, back in the better days.
you would either add it to the keychain or not.
this now is just messy.
 
it does require a restart.

log out and back in causes finder to malfunction; from the connect-to-server window you do not get anywhere anymore, it just shows briefly the 'connecting to smb://xxxxx' window and then loops you back there.
 
Last edited:
Questions:

a) what does "login" mean? Only SMB sharing? Or are you VNCing too?

b) not sure if I understood correctly, but it almost sounds like you want to log in with two different logins to the same server simultaneously. Am I correct?**

c) Is this behaviour you describe unique to Sonoma? Or have you tried it on another macOS?


** Using different logins for the same server at the same time has never worked on macOS.
if there is at least one SMB share connected that has been activated with UserA's credentials, you will always connect to that server with UserA's credentials. You would have to eject all SMB shares and then try to CMD+K to that server again to be able to use different credentials.
 
Last edited:
  • Wow
Reactions: Shirasaki
Questions:

a) what does "login" mean? Only SMB sharing? Or are you VNCing too?

yes, smb sharing only.
(like i had described in 1st post: so I login with userA to some server. (cmd-k in finder))

b) not sure if I understood correctly, but it almost sounds like you want to log in with two different logins to the same server simultaneously. Am I correct?**
no, not simultaneously. sequentially. for testing.

c) Is this behaviour you describe unique to Sonoma? Or have you tried it on another macOS?

as far as I remember, I had encountered that malfunction in quite a few earlier mainversions...
I think at least down till macos12.
but that does not matter, as I need this to work in the latest version.

** Using different logins for the same server at the same time has never worked on macOS.
if there is at least one SMB share connected that has been activated with UserA's credentials, you will always connect to that server with UserA's credentials. You would have to eject all SMB shares and then try to CMD+K to that server again to be able to use different credentials.

I know, I agree. I do log out every single smb-share before reconnecting. to no avail.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.