开发者

setuid has same effect as sudo?

开发者 https://www.devze.com 2023-01-26 13:21 出处:网络
does setting uid has the same effect that sudo has? What happens if setuid\'ed executable open whoami wit开发者_高级运维h popen? Do I get \'root\'?The sudo command affects the credentials of the curre

does setting uid has the same effect that sudo has? What happens if setuid'ed executable open whoami wit开发者_高级运维h popen? Do I get 'root'?


The sudo command affects the credentials of the current user to launching a given process. The setuid command affects the credentials of any user launching a given process.

0

精彩评论

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

关注公众号