POSIX posix_seteuid
(PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8)
posix_seteuid — 현재 프로세스의 유효 UID 설정
설명
posix_seteuid(int $user_id
): bool
현재 프로세스의 유효 사용자 ID를 설정합니다. 이것은 권한이 있는 함수이며 이 함수를 수행할 수 있으려면 시스템에 대한 적절한 권한(일반적으로 루트)이 필요합니다.
매개변수
user_id
- 사용자 ID입니다.
반환 값
성공하면 true
를, 실패하면 false
를 반환합니다.
기타
- posix_geteuid() - Return the effective user ID of the current process
- posix_setuid() - Set the UID of the current process
- posix_getuid() - Return the real user ID of the current process