[Samba] explorer.exe crashes on security tab access

Rowland Penny rpenny at samba.org
Thu Aug 16 15:22:25 UTC 2018

On Thu, 16 Aug 2018 16:59:22 +0200
Kacper <kacper at kacper.se> wrote:

> By primary group I mean the group that is set by chgrp. that is the
> group returned after the pound key (#) from getfacl. In other words
> the Unix group and not the one managed by ACLs.

That is not necessarily the users primary group, the users primary
group is the one displayed by 'getent passwd username' e.g.

root at dc4:~# getent passwd SAMDOM\\rowland
SAMDOM\rowland:*:10000:10000:Rowland Penny:/home/rowland:/bin/bash

The second number is the users primary group, in this case '10000',
which is:

root at dc4:~# getent group 10000
SAMDOM\domain users:x:10000:

But if I create a file in a share and ensure it belongs to the user
with a group that isn't the users primary group (which seems to be what
you are describing), I get:

root at dc4:~# ls -la /srv/samba/Demo/test.txt 
-rw-rwxr--+ 1 SAMDOM\rowland SAMDOM\unixgroup 0 Aug 16 11:29 /srv/samba/Demo/test.txt

And getfacl shows:

root at dc4:~# getfacl /srv/samba/Demo/test.txt 
getfacl: Removing leading '/' from absolute path names
# file: srv/samba/Demo/test.txt
# owner: SAMDOM\134rowland
# group: SAMDOM\134unixgroup

If I now go to a Win7 machine, log in as 'rowland', open explorer and
navigate to the file, right click it, select 'Properties' ->
'Security', it opens correctly (without crashing) and displays the
owners etc.

The share in smb.conf is this:
       path = /srv/samba/Demo/
       read only = no

If it is crashing for you, we need to know why.
What OS ?
What version of Samba ?
What is in your smb.conf ?
What is the DC ?


More information about the samba mailing list