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 listTo get a group's members list use:
net rpc group members GROUPNAMETo obtain help on the group command:
net group