[Bug 1592326] [NEW] Permissions not inherited by files

Dariusz Gadomski 1592326 at bugs.launchpad.net
Tue Jun 14 09:27:25 UTC 2016


Public bug reported:

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.

** Affects: samba
     Importance: Unknown
         Status: Unknown

** Affects: samba (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: regression-update sts

** Bug watch added: Samba Bugzilla #11966
   https://bugzilla.samba.org/show_bug.cgi?id=11966

** Also affects: samba via
   https://bugzilla.samba.org/show_bug.cgi?id=11966
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1592326

Title:
  Permissions not inherited by files

Status in samba:
  Unknown
Status in samba package in Ubuntu:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/1592326/+subscriptions



More information about the foundations-bugs mailing list