Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.