We are getting ready to migrate to Active Directory-based Samba, from the old style domain. Currently all our groups are flat - users belong to groups, but groups can't belong to other groups. Since I want to change that, I need to list all the groups with users.
The catch is that there are thousands of users, and thousands of groups. What I need is to list the groups with 2 or more members, then only show the group name on the command line. This should eliminate user-groups, or groups with only one user.
How can I do this in Debian?
/etc/login.defs
, usually 1000-60000) are processed: the other groups are admin, system or daemon groups and you probably don't want to mess with those.