Saturday, September 8, 2012

Mounting to a Samba Share

Install smbfs first:
sudo apt-get install smbfs

Create a folder to be used in mounting
sudo mkdir /media/samba-share-folder

Get you current UID
id -u

Mount samba share
sudo mount <//network/share-name> <created-mount-folder> -t cifs -o user="<username>",uid=<uid determined above>

Example:
sudo mount //192.168.1.2/files samba-share-folder/ -t cifs -o user="vivek",uid=1000