Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using smldap-tools to administrate a small office network. Whenever I add a new user I always forget which groups I've created and therefore which groups I need to add a user to. Is there an easy way to simply list groups?

Many thanks,

(I really need an smbldap-tools tag, but none current exists and my rep isn't high enough to create it)

share|improve this question
up vote 1 down vote accepted

you can use getent to see what groups your workstation knows of:

getent group

will give you all the groups from the administrative databases specified in /etc/nsswitch.conf; you will get both local as ldap groups. Otherwise you might want to script it yourself, you use the smbldap-tools, so you have Perl and Net::LDAP installed ;-)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.