[Samba] Getting a list of users in a group - how?

Adam Nielsen adam.nielsen at uq.edu.au
Fri Jun 23 06:01:52 GMT 2006

Hi all,

Hopefully this is a simple one - I'm trying to work out how to get a
list of users in a certain group.  If I have the following set up in
Active Directory:

   - UserA
   - UserB

   - UserC
   - UserD

   - Group1
   - Group2
   - UserX

Then I want to be able to say "List all users in the AllGroups group"
and I should get UserA,B,C,D and UserX returned.

I'm not sure how to go about this - wbinfo only seems able to return
the groups a single user is a member of, and 'getent group' only
returns people specifically in that group (i.e. "getent group
AllGroups" only returns UserX, it ignores the nested groups, even
if "winbind nested groups = yes" in smb.conf.)

Any ideas how to list *all* the users in a specific group?


More information about the samba mailing list