Access and Mount an SMB Share via Command Line
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…


Want Gmail Push Notifications on your iPhone? In a crafty workaround, you can get Gmail to push notifications to your iPhone by setting up Gmail as a Microsoft Exchange account. The downside to this method is that you can only have one Microsoft Exchange account setup on your iPhone at a time, so if you already have an Exchange account configured you would have to replace it with the Gmail one. In any case, you can follow the instructions directly from Google on setting up the account so that you can get push notifications: 