I’m connecting to Windows SBS 2011, but it should work in other versions of Windows to. First, you’ll need the server IP, share name, and credentials to access the share if required.
- apt-get install smbfs
- Create the directory on your machine you’ll like the share to be linked to
- vi /etc/fstab, and add the following to the end:
//[SERVER_IP]/[SHARE_NAME] /[LOCAL_SHARE_FOLDER] cifs uid=[YOUR_LOCAL_USERNAME],credentials=/etc/cifspw,_netdev 0 0
- vi /etc/cifspw, and add the credentials to access the share (windows user account)
- chmod 600 /etc/cifspw
- mount -a
If successful, there will be no errors/messages when you use the mount -a command, and the share will be visible from Nautilus / wherever you mounted it.