/build/static/layout/Breadcrumb_cap_w.png

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/ ”

 


0 Comments   [ + ] Show comments

Answers (3)

Answer Summary:
Posted by: SMal.tmcc 12 years ago
Red Belt
4

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
Posted by: SMal.tmcc 12 years ago
Red Belt
2

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
Posted by: thefishyfew 12 years ago
Blue Belt
2

I think I found part of the problem. Its the operating system, OS X.7, which can't mount smb shares as root. OS X.6.8 works fine. Now, how do i get it to mount in OS X.7?

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ