How do you mount an smb share through KACE?
I am trying to write a script that will mount a server and copy a file from that server. I've run into a small glitch, though. I can create a temporary directory and run the command to mount the server to that share and you can see it show up in the Finder window on the left Navigation side. But, when you click on that server name, the right side of the Finder window says its connecting and then connection failed. Any ideas of what is going on?
I'm using the following command to mount the server: Launch “/sbin/\mount” with params “-t smbfs //username:password@path/to/server/ /private/tmp/Share/ ”
Answers (3)
from apple's web site if you have 10.7.4 it is a problem
https://discussions.apple.com/thread/3973152?start=0&tstart=0
Comments:
-
It is 10.7.4 so that's a major problem. - thefishyfew 12 years ago
-
we are in the same boat, also the version of firmware on our new i-macs does not play with using sudo bless over vlans anymore for k2000 imaging. - SMal.tmcc 12 years ago
This first command lists the available shares at the destination IP:
$ smbclient -U user -I 192.168.0.105 -L //smbshare/
Now you’ll want to pass set your SMB shares mount point:
$ mount -t smbfs -o username=winusername //smbserver/myshare /mnt/smbshare
and finally you’ll want to gain access to the SMB share by specifying your Windows login and the machines IP address:
$ mount -t cifs -o username=winusername,password=winpassword //192.168.0.105/myshare /mnt/share
Comments:
-
smbclient? there's no man page for this so is this a windows command? - thefishyfew 12 years ago
-
http://www.samba.org/samba/docs/man/manpages-3/smbclient.1.html - philologist 12 years ago
-
Just found out that smbclient was removed in OS X.7 (Lion) and replaced with smbx. mount_smbfs is its replacement - thefishyfew 12 years ago