I am running a Samba server on Ubuntu (Server 11.04) for file sharing with Windows machines as well as other Linux boxes. The shares work almost as expected on a windows box, but the behaviour on another Linux client is not as expected. For testing purpose I have the share with the following settings
[myshare]
read only = no
create mask = 0777
directory mask = 0777
valid users = myuserid
myuserid is the same on all machines -- Linux Mint, Windows XP and 7 and the Ubuntu Server itself. With this configuration, when I create a new file from Linux Mint the resulting file access permission as seen on the server becomes -rw-r--r--
When a file is created from Windows XP the permission becomes -rwxrw-rw-
For this exercise the shared folder was mounted using "Connect to Server ..." menu item of the gnome file manager (nautilus).
I tried to mount the samba share by issuing following command and got the same results
sudo mount -t cifs -o username=myuserid,domain=MYWORKGROUP //192.168.1.10/sharedfolder /mylocalmap
Why is this discrepancy?
Thanks!
[myshare]
read only = no
create mask = 0777
directory mask = 0777
valid users = myuserid
myuserid is the same on all machines -- Linux Mint, Windows XP and 7 and the Ubuntu Server itself. With this configuration, when I create a new file from Linux Mint the resulting file access permission as seen on the server becomes -rw-r--r--
When a file is created from Windows XP the permission becomes -rwxrw-rw-
For this exercise the shared folder was mounted using "Connect to Server ..." menu item of the gnome file manager (nautilus).
I tried to mount the samba share by issuing following command and got the same results
sudo mount -t cifs -o username=myuserid,domain=MYWORKGROUP //192.168.1.10/sharedfolder /mylocalmap
Why is this discrepancy?
Thanks!