TransWikia.com

Create an alias to a samba share from the command line

Super User Asked by Matthieu Cartier on December 5, 2021

I’m currently wanting to deploy a setup to around 300 Macs. I have all of it scripted and ready to deploy, excepting that I’m having trouble creating a working alias to a samba share from the command line. I tried creating an alias, and then copying it from one Mac to another, but it loses its status as an alias, and instead OSX opens it in TextEdit (the @ in ls -l is also missing). Even if this did work, from a hexdump, it also looks like the alias has machine-specific information that may not work on another Mac.

Say that I wanted to create an alias to ‘smb://server/share’ on the desktop from the command line, how would I do that?

The machines run Mac OS 10.6.

Thanks.

2 Answers

When you are connected to the Samba share, do you have a folder for it in /Volumes? You could always Symlink to this folder.

Why don't you create an applescript or an shell script and put it on your desktop. The script would mount the share if necessary and enter it.

Answered by deiga on December 5, 2021

I think you want mount_smbfs.

Dropbox may also be worth examining.

Answered by unhappyCrackers1 on December 5, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP