Bug 5011 - Office products does not set group permissions
Summary: Office products does not set group permissions
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: File Services (show other bugs)
Version: 3.0.23d
Hardware: x86 Linux
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-06 09:03 UTC by Niklas Peterson
Modified: 2020-12-29 23:31 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
Comment 2 Björn Jacke 2020-12-29 23:31:18 UTC
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.