Too useful, because in programming, such as CGI, in the implementation of CGI, with root权限 totally unnecessary, but if the setuid (), for example reduced to an ordinary user, the objective was achieved, but done, it was unable to call setuid (0). So setuid () is not a site. However, in order to achieve the same purpose, you can call the root of the seteuid () changed effective process ID, CGI code will not do what they wanted to do, they can always restore euid very convenient.
|