开发者

How to print out which groups the current process belongs to on Linux?

开发者 https://www.devze.com 2023-02-01 12:17 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号