| 総合手引 | セクション 2 | English | Deutsch | オプション |
#include <unistd.h>
特権のないユーザは、実グループ ID をその実効グループ ID に、または 実効グループ ID をその実グループ ID に変更できます。 スーパユーザだけがその他の変更を行えます。
実グループ ID と実効グループ ID のどちらかに値 -1 を指定すると、 システムは -1 引数の代わりに現在の ID で置き換えます。
setregid() システムコールは、グループ ID 設定プログラム内の実グループ ID と 実効グループ ID を スワップし、グループ ID 設定の値を一時的に放棄できるようにするために 作られました。 このシステムコールは正しく機能せず、その目的は、今では setegid(2) システムコールを使用するとより良く達成できます。
実グループ ID と実効グループ ID を同じ値に設定するときは、標準の setgid() システムコールを使用してください。
| [EPERM] | |
| 現在のプロセスがスーパユーザでなく、その実効グループ ID を その実グループ ID に変更する以外の変更が指定されました。 | |
| SETREGID (2) | April 16, 1994 |
| 総合手引 | セクション 2 | English | Deutsch | オプション |
このマニュアルページサービスについてのご意見は Ben Bullock にお知らせください。 Privacy policy.
| “ | "I liken starting one's computing career with Unix, say as an undergraduate, to being born in East Africa. It is intolerably hot, your body is covered with lice and flies, you are malnourished and you suffer from numerous curable diseases. But, as far as young East Africans can tell, this is simply the natural condition and they live within it. By the time they find out differently, it is too late. They already think that the writing of shell scripts is a natural act." | ” |
| — Ken Pier, Xerox PARC | ||