Bug 5011 - Office products does not set group permissions
Office products does not set group permissions
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: File Services
3.0.23d
x86 Linux
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-10-06 09:03 UTC by Niklas Peterson
Modified: 2008-02-18 09:48 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Niklas Peterson 2007-10-06 09:03:03 UTC
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*
Comment 1 Cronfy 2008-02-18 09:48:43 UTC
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