Copied from here
Other ref here:
Install cifs:
sudo apt-get install -y cifs-utils
Create folder:
sudo mkdir -p /media/networkshare/public
Edit /etc/fstab:
sudo nano /etc/fstab
Insert the following line
//192.168.1.3/protectedshare /media/networkshare/public cifs username=msusername,password=mspassword,uid=1000,gid=1000,iocharset=utf8 0 0
Save and exit editor
sudo mount -a