Bug 11966 - Permissions are not inherited for files.
Summary: Permissions are not inherited for files.
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: libsmbclient (show other bugs)
Version: 4.3.9
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-14 09:14 UTC by Dariusz Gadomski
Modified: 2016-09-28 05:05 UTC (History)
1 user (show)

See Also:


Attachments

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:
[share1]
  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.