Mount SAMBA share on ubuntu

sudo apt-get install samba cifs-utils
sudo nano /home/<USERNAME>/.smbcredentials

username=guest
password=guest

sudo nano /etc/fstab

//<SERVER_IP>/<SHARE1>/ /mnt/nas/<SHARE1>/ cifs credentials=/home/<USERNAME)/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 0 0

//<SERVER_IP>/<SHARE2>/ /mnt/nas/<SHARE2>/ cifs credentials=/home/<USERNAME)/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 0 0

sudo mkdir /mnt/nas/<SAHRE1>
sudo mkdir /mnt/nas/<SHARE2>
sudo mount -a

Advertisements