I want to mount a Windows share using CIFS on my Ubuntu 17.04 machine. If I use the mount command below it works fine, and I can access the Windows share:
Code:
sudo mount -t cifs //servername/sharename /home/myuser/mediafolder -o credentials=/home/myuser/.smbcredentials,dir_mode=0777,file_mode=0777
If I attempt to make this permanent using the following entry in /etc/fstab I get a permissions error when I try to access the mount point at /home/myuser/mediafolder :
Code:
//servername/sharename /home/myuser/mediafolder cifs credentials=/home/myuser/.smbcredentials,gid=1000,uid=1000,iocharset=utf8,file_mode=0777,dir_mode=0 0 0
What is the difference between the two options above, and why am I denied permissions with the 2nd approach?