Linux c 语言 setgid 和 setgroups 的区别
資深大佬 : zxCoder 0
setgid 的说明是 This function sets both the real and effective group ID of the process to newgid
setgroups 的说明是 This function sets the process’s supplementary group IDs.
请问区别是什么
大佬有話說 (3)
setgid 的说明是 This function sets both the real and effective group ID of the process to newgid
setgroups 的说明是 This function sets the process’s supplementary group IDs.
请问区别是什么
https://linux.die.net/man/3/setgid
https://en.wikipedia.org/wiki/Group_identifier#Supplementary_groups
Gooooooooooogle it!