Permissions problem connecting to Windows share
I am using a Linux client (running Ubuntu) that is trying to connect to a Windows share. I have a line in fstab that looks like this:
//192.168.11.1/C /c cifs defaults,credentials=/etc/smbpasswd,domain=MY_DOMAIN,iocharset=iso8859-1,file_mode=0777,dir_mode=0777,umask=777 0 0
Some of those options might be unnessary (I'm not sure what umask does).
It generally works. My problem is that when I create a new file on this share (from linux), the permissions on the brand new file are:
-rw-r--r-- 1 root root 0 Dec 17 18:50 6
when I want them to be 777.
Interestingly, if I unmount and then re-mount the share, the same file changes to 777 permissions.
How can I make new files be read+writable by everyone?