Doc #67082 [Opn->Csd]: posix_seteuid does not set the real id
| From: | leigh@php.net | Date: | Wed, 14 Dec 2016 17:33:23 +0000 |
| Subject: | Doc #67082 [Opn->Csd]: posix_seteuid does not set the real id | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14233@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67082&edit=1
ID: 67082
Updated by: leigh@php.net
Reported by: john at etailz dot com
Summary: posix_seteuid does not set the real id
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: leigh
Block user comment: N
Private report: N
New Comment:
Updated docs to reflect the importance of the letter "e"
Previous Comments:
------------------------------------------------------------------------
[2014-04-15 23:47:51] john at etailz dot com
Description:
------------
---
From manual page: http://www.php.net/function.posix-seteuid
---
The docs state posix_seteuid sets the real user id of the process. It does not. It sets the
effective user id.
Test script:
---------------
echo " Setting UID to ".UID."\n";
echo " USER ID ".posix_getuid()."\n";
echo " USER ID ".posix_geteuid()."\n";
if(posix_seteuid(UID)){
echo " Successfully set the UID\n";
} else {
echo " Setting UID failed\n";
}
echo " USER ID ".posix_getuid()."\n";
echo " USER ID ".posix_geteuid()."\n";
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67082&edit=1