[Samba] differences between 'getent group GROUP1' and 'sudo samba-tool group listmembers GROUP1'

pavel.lisy at gmail.com pavel.lisy at gmail.com
Mon Jan 20 20:56:17 UTC 2025


Hello

I'm confused. On new installation of Samba 4 domain I have some
configuration problem. 

samba release: Version 4.19.5-Ubuntu

* example for user "pali"

* returns members of this group
$ sudo samba-tool group listmembers GROUP1 
...
pali
...

* no users in group 
-- returns correct info (name, gid) except group members - it is empty
$ getent group GROUP1
-- EMPTY --

* but "groups" shows all groups 
$ groups pali
... GROUP1 ...

How it could be possible?
Where could I search for configuration mistake?

/etc/samba/smb.conf:

[global]
   bind interfaces only = Yes
   dns forwarder = 8.8.8.8
   interfaces = lo enp1s0
   netbios name = DC11
   realm = OFFICE.SOMEDOMAIN.COM
   server role = active directory domain controller
   workgroup = OFFICE
   idmap_ldb:use rfc2307 = yes
   # glob_winbind: - - - - - - begin
   winbind enum groups = Yes
   winbind enum users = Yes
   winbind use default domain = yes
   # glob_winbind: - - - - - - - end
   # glob_template: - - - - - - begin
   template shell = /bin/bash
   template homedir = /home/%D/%U
   # glob_template: - - - - - - - end
   # glob_acl: - - - - - - begin
   vfs objects = acl_xattr
   map acl inherit = yes
   store dos attributes = yes
   # glob_acl: - - - - - - - end

  # log level = 0
   # log file = /var/log/samba/log.%J
   # log level = all:2 auth:3 locking:2



Any tips?

Pavel



More information about the samba mailing list