Permissions not inherited by files

Bug #1592326 reported by Dariusz Gadomski
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
samba
Unknown
Unknown
samba (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Trusty by Dariusz Gadomski
Nominated for Wily by Dariusz Gadomski
Nominated for Xenial by Dariusz Gadomski

Bug Description

Samba version used:
4.3.9+dfsg-0ubuntu0.16.04.2

Steps to reproduce:
1. Configure a samba share with inherited permissions:
[share1]
  path = /srv/share1
  browseable = yes
  read only = no
  guest ok = no
  inherit permissions = yes
2. Create a directory under that share:
cd /srv/share1; mkdir inherit && chown 2770 inherit

3. Connect to this share from a Windows client and create a file and a folder in the new directory.

What is expected?
Both file and directory have permissions inherited from the parent directory.

What happens?
├── [drwxrws---] ./inherit
│ ├── [-rwxr-----] ./inherit/New text document.txt
│ └── [drwxrws---] ./inherit/New folder

File has not inherited the group-write permission.

This should not be the case according to the manpage 5 smb.conf:
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.

tags: added: regression-release
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in samba (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.