PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

posix_seteuid> <posix_mknod
Last updated: Fri, 18 Jul 2008

view this page in

posix_setegid

(PHP 4 >= 4.0.2, PHP 5)

posix_setegid — 現在のプロセスの実効 GID を設定する

説明

bool posix_setegid ( int $gid )

現在のプロセスの実効グループ ID を設定します。 この関数は特権関数であり、実行するにはシステム上において適当な権限 (通常は root) が必要です。

パラメータ

gid

グループ ID。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

例1 posix_setegid() の例

この例では、まず実効グループ ID を変更してから、それを表示します。

<?php
echo '実グループ ID は '.posix_getgid(); //20
posix_setegid(40);
echo 
'実グループ ID は '.posix_getgid(); //20
echo '実効グループ ID は '.posix_getegid(); //40
?>

参考



add a note add a note User Contributed Notes
posix_setegid
There are no user contributed notes for this page.

posix_seteuid> <posix_mknod
Last updated: Fri, 18 Jul 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites