From the Linux man pages: setuid sets the effective user id of the current process.
在Linux手册页上指出:setuid设置当前进程的有效用户id。
The effective user ID of the calling process must be that of the super-user or match the creator or owner of the semaphore set.
调用进程的有效用户ID必须是超级用户,或者可以与该信号量集的创建者或所有者匹配的用户。
This allows a set-user-ID (other than root) program to drop all of its user privileges, do some un-privileged work, and then re-engage the original effective user ID in a secure manner.
这使set-user-ID(非根)程序能够放弃它的所有用户特权,执行一些非特权操作,然后恢复原来的有效用户ID。
To do this, either the effective user ID of the porcess must equal the owner ID of the file, or the process must have write permission for the file.
这时,进程的有效用户ID必须和文件的拥有者ID一致,或者进程必须拥有文件的写权限。
For this case, the effective user ID of the process must equal the owner ID of the file, or the process must be a superuser process. Merely having write permission for the file is not adequate.
这种情况下,进程的有效用户ID等于文件拥有者的ID,或者进程是超级进程,仅仅有文件的写权限是不够的。
For this case, the effective user ID of the process must equal the owner ID of the file, or the process must be a superuser process. Merely having write permission for the file is not adequate.
这种情况下,进程的有效用户ID等于文件拥有者的ID,或者进程是超级进程,仅仅有文件的写权限是不够的。
应用推荐