日期:2014-05-16  浏览次数:20618 次

apue学习问题 第八章 进程控制 相关
最近在看这本书

第八章 进程控制 的8.11节 更改用户ID和组ID

倒数第9行,也就是那个第四个圆括号处 

中文版原文“man调用setuid(euid),其中euid是用户man的数值用户ID(man调用geteuid,得到用户man的用户ID,然后保存起来)。”  
英文版原文“When the filter is done, man calls setuid(euid), where euid is the numerical user ID for the user name man. (This was saved by man by calling geteuid.) ”

为何euid = man? 求指导呀 先谢过了

------解决方案--------------------
这个euid 是调用geteuid()得到的,不就是用户man的有效uid吗