Oct 13
SMB mount Terminal (Command line)
from osxdaily.com:
OS X Daily reader Dan Luna sent in the following tip on accessing Windows shares on the Mac from the command line: “My Mac is nestled into a sea of Windows PC’s at the office, and so I am frequently accessing SMB shares to share data and files. Accessing SMB/Windows shares on the Mac is really easy from the GUI but I spend a lot of time in the command line and I always like to find a way to do things using the underpinnings of Mac OS X. With this in mind, here’s how to access SMB shares via the command line in OS X:”
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
Thanks for the tip Dan! I haven’t been able to check if this works because I’m on an all Mac network, but the commands seem valid so I see no reason it wouldn’t. Obviously you’ll need to fill in your own unique usernames, sharenames, IP addresses, mount points, etc.
I really appreciate Dan’s tip but I think I’ll just stick to the GUI myself…
2 Comments so far
Leave a comment
Buy:Zithromax.Soma.Cialis Soft Tabs.Super Active ED Pack.VPXL.Cialis Super Active+.Cialis.Cialis Professional.Levitra.Maxaman.Tramadol.Viagra Super Active+.Viagra.Viagra Professional.Viagra Super Force.Viagra Soft Tabs.Propecia….
Buy:Viagra Soft Tabs.Cialis Super Active+.Tramadol.Maxaman.VPXL.Viagra Super Force.Viagra Professional.Viagra Super Active+.Cialis Soft Tabs.Zithromax.Soma.Cialis.Cialis Professional.Levitra.Viagra.Propecia.Super Active ED Pack….