> -----Original Message----- > From: Henrik Zagerholm > Sent: Friday, December 08, 2006 7:32 AM > > Hello list, > > I wonder if I can somehow enumerate all local groups a user is member > of? > > Regards, > Henrik
I don't get what you mean. You should be able to list all groups with members with: getent group If you want to filter out groups for just one user you can do this: getent group | grep username But it will still list all the users that are also members of the same group. If you are using winbind, you can also try this: Wbinfo -r username Which will return just the gids of all the domain groups a user is a member of, but I don't know if it returns local groups or not. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
