Add network share to favorites via command line?

Andixon
Contributor

Hi,

is there a way to add network shares to finder favorites via the command line? I could not find anything by googling.

 

3 REPLIES 3

AJPinto
Honored Contributor III

The command below should mount the network share, the reason its not very well used is you need to pass credentials in the in the command which is very insecure. 

 

mount_smbfs //[username]:[password]@[server]/[share] /Volumes/[mount_point]

 

 

Shyamsundar
New Contributor II

You can also use the following command: open “smb://name@server/“  Replace “name” with your username and “server” with the server’s fully qualified domain name (FQDN). If required, the command will prompt you for your password. This command can be used to mount a shared drive. 

 

 

Jay_007
Contributor

I would recommend taking a look at Network Share Mounter