Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
设置 uid 是否与 sudo 具有相同的效果?如果 setuid 的可执行文件用 popen 打开 whoami 会发生什么?我得到“根”吗?
该sudo命令会影响当前用户的凭据以启动给定进程。该setuid命令会影响启动给定进程的任何用户的凭据。
sudo
setuid