Bug 28655 - Samba4: Besitzergruppe vererbt sich nicht bei gesetztem S-Bit
Samba4: Besitzergruppe vererbt sich nicht bei gesetztem S-Bit
Status: RESOLVED DUPLICATE of bug 28711
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 3.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
https://bugzilla.samba.org/show_bug.c...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-26 18:12 CEST by Arvid Requate
Modified: 2014-04-01 15:09 CEST (History)
4 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
Patch für inherit_new_acl Funktion (1.12 KB, patch)
2012-09-26 18:14 CEST, Arvid Requate
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2012-09-26 18:12:44 CEST
Auch unter Samba4/smbd wird das SGID-Bit an Verzeichnissen nicht korrekt behandelt und vererbt. Der Patch aus Bug #27950 Comment 12 scheint sich auch auf den aktuellen Samba Code anwenden zu lassen, wenn die Funktion auch in eine andere Datei verschoben wurde.

+++ This bug was initially created as a clone of Bug #27950 +++
Comment 1 Arvid Requate univentionstaff 2012-09-26 18:14:22 CEST
Created attachment 4690 [details]
Patch für inherit_new_acl Funktion

Angepasster Patch, bisher noch nicht gegen Samba4 getestet
Comment 2 Tim Petersen univentionstaff 2014-03-26 09:12:44 CET
$ udm shares/share create --position cn=shares,$(ucr get ldap/base) --set name=test --set host=$(hostname -f) --set path=/test --set sambaWriteable=1 --set sambaNtAclSupport=1 --set sambaInheritAcls=1 --set sambaInheritPermissions=1
$ mkdir /test/test2
$ chgrp 'Domain Users' /test/test2/
$ chmod 2770 /test/test2/
$ cd /home/Administrator
$ smbclient //$(hostname)/test -U Administrator
smb: \> cd test2
smb: \test2\> put .bashrc test.txt

root@backup:~# ls -la /test/test2/
insgesamt 16
drwxrws---  2 root          Domain Users 4096 26. Mär 09:12 .
drwxr-xr-x  3 root          root         4096 26. Mär 09:12 ..
-rwxrwxr-x+ 1 Administrator Domain Users 3184 26. Mär 09:12 test.txt

Did I get something wrong or is it working now with UCS 3.2-1 and Samba4 (on a dc backup as fileserver)?
Comment 3 Arvid Requate univentionstaff 2014-04-01 15:09:30 CEST
Yes, fixed via Bug 28711 since UCS 3.1-0.

*** This bug has been marked as a duplicate of bug 28711 ***