(PHP 4, PHP 5, PHP 7, PHP 8)
posix_setuid — Geçerli sürecin kullanıcı kimliğini tanımlar
Geçerli sürecin gerçek kullanıcı kimliğini tanımlar. Bu işlevi kullanabilmek için root yetkisine sahip olmanız gerekir.
kullanıcı_kimliği
Kullanıcı kimliği.
Örnek 1 - posix_setuid() örneği
Bu örnekte geçerli kullanıcı kimliği gösterilip başka bir değere ayarlanmaktadır.
<?php
echo posix_getuid()."\n"; //10001
echo posix_geteuid()."\n"; //10001
posix_setuid(10000);
echo posix_getuid()."\n"; //10000
echo posix_geteuid()."\n"; //10000
?>