Bug 11966 - Permissions are not inherited for files.
Permissions are not inherited for files.
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: libsmbclient
All All
: P5 normal
: ---
Assigned To: Samba QA Contact
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2016-06-14 09:14 UTC by Dariusz Gadomski
Modified: 2016-09-28 05:05 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Dariusz Gadomski 2016-06-14 09:14:00 UTC
With the following share defined:
  path = /srv/share1
  browseable = yes
  read only = no
  guest ok = no
  inherit permissions = yes

I create a root directory:
mkdir inherit && chown 2770 inherit

I connect to the server with a Windows client and create a text file and a folder under that directory.

Here is what happens:
├── [drwxrws---] ./inherit 
│   ├── [-rwxr-----] ./inherit/New text document.txt 
│   └── [drwxrws---] ./inherit/New folder 

According to the man page:
New files inherit their read/write bits from the parent directory.

In this case the containing folder group write permission has not been inherited.

The inheritance worked as expected in 4.1.6.