How to print out which groups the current process belongs to on Linux?
How can I get a list of groups that the c开发者_开发技巧urrently running process is subscribed too?
getegid(2)
, getgroups(2)
groups
give the groups the current process is a member of.
groups username
is the groups of the username.
See man groups
精彩评论