Thetargos
2008-08-20, 05:08 PM CDT
I have a CentOS server setup as a file server with Samba and mount the shares on different machines through CIFS on Fedora. However I have a problem. All shares are mounted through user/password. Needless to say that Windows machines do not have any problems accessing the shares. The problem I have is that when a file is written to the share, the perms inherited are 0755. Now Windows machines do not have problems with that as the UID/GID bits seem to be ignored by the OS (or are inherited by the login parameters of the shares), however, Linux machines exhibit a behaviour so that I had to create a local group to which users with access to the shares belong. The mount point of the CIFS share is set so that users of the group have write access to it, however, once a file is written the perms are set to 755 again (rw-r--r--). I changed the umask for the shares in the server to 775, but the creation mask for the share seems to be 0755 rather than 0775. Now, I'm guessing I have to change the umask on the local systems where the shares are actually mounted?
Before anyone asks, I tried to export the same share with NFS from the server, but hit the very same problem with it, and for some reason CIFS seems to be much faster (network transfers at full 100mbit/s) than with NFS.
Before anyone asks, I tried to export the same share with NFS from the server, but hit the very same problem with it, and for some reason CIFS seems to be much faster (network transfers at full 100mbit/s) than with NFS.