| 総合手引 | セクション 2 | English | Deutsch | オプション |
#include <unistd.h>
実ユーザ ID が変更された場合 (つまり ruid が -1 ではない)、 もしくは実効ユーザ ID がその実ユーザ ID 以外へと変更された場合、 退避ユーザ ID はその実効ユーザ ID へ設定されます。
setreuid() システムコールはユーザ ID 設定プログラム内で実ユーザ ID と実効ユーザ ID を スワップし、ユーザ ID 設定の値を一時的に放棄するために使われてきました。 この目的は、現在では seteuid(2) システムコールを使用するとより良く達成できます。
実ユーザ ID と実効ユーザ ID を同じ値に設定するときは、標準の setuid() システムコールを使用するようにしてください。
| [EPERM] | |
| 現在のプロセスがスーパユーザでなく、実効ユーザ ID を実ユーザ ID に 変更する以外の変更が指定されました。 | |
| SETREUID (2) | February 8, 2001 |
| 総合手引 | セクション 2 | English | Deutsch | オプション |
このマニュアルページサービスについてのご意見は Ben Bullock にお知らせください。 Privacy policy.
| “ | Ken Thompson has an automobile which he helped design. Unlike most automobiles, it has neither speedometer, nor gas gauge, nor any of the other numerous idiot lights which plague the modern driver. Rather, if the driver makes a mistake, a giant “?” lights up in the center of the dashboard. “The experienced driver,” says Thompson, “will usually know what's wrong.” | ” |