How Do I See Samba Groups?

How can I see all groups in my Samba server? If possible, with users who belong to that group.

3 Answers

To list Samba domain groups:

sudo samba-tool group list

If you want to see member users from a Group:

sudo samba-tool group listmembers "Domain Admins"

Reference:

Groups within samba are mapped over from the normal Unix groups used on your system. You can view these with the command.

sudo cat /etc/group
3

If you are using Samba 4's Active Directory you should use the net command:

net rpc group list

To get a group's members list use:

net rpc group members GROUPNAME

To obtain help on the group command:

net group

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest