Trying to mount a windows share into Ubuntu 16.04 LTS. Â I could run the following command just fine:
sudo mount -t cifs -o domain=workgroupname,username=myname,password=mypassword //192.168.1.15/music /media/music
But of course would lose the map on reboot.  So install “sudo apt-get install cifs-utils” and then Everytime I tried to add to fstab and “sudo mount -a” I would get the mount error(13) permission denied.
What fixed it was changing the sec on my command to “ntlmsspi”. Â Hope this helps someone else. Â So my command in fstab (/etc/fstab) is
//192.168.1.15/music /media/music cifs username=myname,domain=workgroupname,password=mypassword,
iocharset=utf8,sec=ntlmsspi 0 0
Now that you have this working you need to create a .smbcredentials file in the /root directory to contain and hide my credentials,
Enter your Windows username and password in the file:
username=msusername
password=mspassword
domain=workgroupordomain
“sudo chmod 700” that file.  and change the fstab line command to :
//192.168.1.15/music /media/music cifs credentials=/root/.smbcredentials,iocharset=utf8,sec=ntlmsspi 0 0
Recent Comments