Not sure if this is a Samba problem or an Office problem. I have a share set up like this: [test] comment = test path = /faab/test valid users = @faab read list = write list = force group = faab create mask = 0770 directory mask = 0770 browseable = Yes When creating a new file in Windows Explorer(right-click, new, MS Word document) on a Windows XP Pro machine I get the permissions correct (See file test1.doc below). If I start MS Word and save the file with Save as I don't get any group permissions (Se file test2.doc below). [root@faabsrv02 test]# ls -la total 40 drwxrwx--- 2 root faab 4096 Oct 6 15:30 ./ drwxr-xr-x 11 root faab 4096 Oct 6 15:24 ../ -rwxrw---- 1 nipe faab 10752 Oct 6 15:29 test1.doc* -rwx------ 1 nipe faab 19456 Oct 6 15:30 test2.doc*
I have experienced the same problem, but not only with MS Office Software. I am using Samba 3.0.28 and I want to set 0770 permissions on every file created by user. From my Ubuntu everything works as desired, but when Windows or SuSE client connects to Samba and creates a file or a directory, group write bit is not set. Here is smb.conf cut and paste: [design] comment = Design Dept path = /home/deps/design valid users = @design public = no writable = yes printable = no create mask = 0775 directory mask = 0775 force create mode = 0775 force directory mode = 0775 security mask = 0000 force security mode = 0777
This works correctly with supported samba versions and good settings, permission modifying parameters can make this break though, but that's not a samba bug then.