6

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

3 Answers 3

4

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: https://www.tecmint.com/manage-samba4-active-directory-linux-command-line/

2

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
  • 1
    @MaxRian Share an upvote to show your appreciation.
    – Oxwivi
    Oct 5, 2015 at 8:33
  • @OXwivi not enough reputation:P
    – Max Rian
    Oct 5, 2015 at 8:41
  • 1
    @MaxRian, there, reputation for you!
    – Oxwivi
    Oct 5, 2015 at 8:45
0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .