Skip to main content

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

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

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


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

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

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