Methods to mount SMB volumes as different user than one logged in as

johnklimeck
Contributor II

Methods to mount SMB volumes as different user than one logged in as

There has to be a way, but have not found it yet.

Have tried this:

smb://username:password@server/share, or just smb://username:password@server

Using Centrify AD binding (which is working great for us).

Thanks again,

John

4 REPLIES 4

JPDyson
Valued Contributor

You need to set a mount point for the share; try creating a folder on the desktop and mounting the share to that path from Terminal. Should do the trick (I use it all the time).

Edit: FYI

mount_smbfs //user@server/share /Users/someUser/Desktop/someExistingFolder

rhysforrester
New Contributor

If you want to use the GUI and don't want a clear text password entered in, just set the password as a space so that it will prompt the user for the password.

smb://username: @server

JPDyson
Valued Contributor

Good catch on tricking the GUI to prompt (mine prompts, but in terminal); taking it one step further, let's say you want to include this in a script that populates it for all users without pre-setting the user name - replace both user and password with a space!

smb:// : @server

johnklimeck
Contributor II

mount_smbfs //user@server/share /Users/someUser/Desktop/someExistingFolder

In the above example how do you specify a domain? (what's the proper syntax)