Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Log in to a single SMB share with multiple user names Network
I was having trouble connecting to multiple directories on a single SMB share in Leopard, where the directories had different logins. If I was logged into one directory as one user, then the "Connect to Server..." option in the Finder would default to that user for all directories on the same share and error out. I found a workaround for this.

With one directory already mounted under the first user login, select Go » Connect to Server. Type in your share name with the user before the drive name:
smb://2ndusername@drivename/2ndDirectory
Finder will then prompt you for a password, and mount the directory as a separate network drive. This should also work for AFP shares, though I haven't tried it.
    •    
  • Currently 1.80 / 5
  You rated: 4 / 5 (10 votes cast)
 
[17,338 views]  

Log in to a single SMB share with multiple user names | 5 comments | Create New Account
Click here to return to the 'Log in to a single SMB share with multiple user names' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Log in to a single SMB share with multiple user names
Authored by: MacMuse26 on Apr 09, '09 08:08:03AM

rats, doesn't seem to work in Tiger when accessing a Windows 2003 server or ExtremeZ-IP (AFP) volume on a Windows server.

Still forced to logout current user before I can access my admin volumes.



[ Reply to This | # ]
Log in to a single SMB share with multiple user names
Authored by: owsla on Apr 09, '09 09:13:50AM

You can work around this issue by having aliases for your SMB server (eg, smbserver1, smbserver2, smbserver3) all pointing to the same IP address. The restriction of one set of credentials at a time is based on server hostname, not IP address. (I suppose you could also try the IP of the server directly, instead of creating a second alias.)



[ Reply to This | # ]
Log in to a single SMB share with multiple user names
Authored by: b3uk on Apr 10, '09 12:29:08PM

Amazing! This bug has been annoying me for months, and searching every corner of the web had provided me with no solutions - it now works like a charm.

Thank you!

---
"Do it now. Today will be yesterday tomorrow"
- Talking Moose



[ Reply to This | # ]
Log in to a single SMB share with multiple user names
Authored by: osxpounder on Apr 10, '09 10:54:17PM

Nice one. Thanks!



[ Reply to This | # ]
Log in to a single SMB share with multiple user names
Authored by: mzs on Apr 13, '09 12:17:09PM

Has anyone got the analog of this for the case you are mounting the drive from Windows. What I do now is I fire-up cmd.exe and type:

start \\192.168.1.2

(In reality I have dns entries in my router so I do not type the IPs but I do not want to confuse here.) Then I right-click on my home dir (which is on the eMac) and pick map network drive. I select as different user and put in my short user name and password. Then my home dir gets mounted as drive Z: and when I am done I go to computer and right-click drive Z: and select disconnect.

I wish I could simplify this to typing something like:

start \\mzs@192.168.1.2

I've tried also tried:

start \\192.168.1.2\mzs

The reason for this is that the Windows machine is pretty much only there for media center so it only has one non-admin user. If I mount the home dir as that user I cannot get to the ~/Movies dir, which has the movies I want to show on the TV, grumble. If I were to create another user they would fight over the the tuner. (I need to get to videos and pictures on my wife's account in the eMac as well, so one account will not cut it.)

Oh sometimes Windows complains about the disconnect. You can see what is up with this:

net use

And then get rid of the offending entry with this:

net use /delete *

Then only type Y to the troublesome one.



[ Reply to This | # ]