8 dec 2006 kl. 22:28 skrev James A. Dinkel:
-----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.
Sorry for not being specific but I want to enumerate the groups a
local windows users is member of on his computer.
I want to know if he is member of e.g "privileged users".
I can list users in a group but I also want to list the groups which
he is member of.
Cheers,
Henrik
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba