seteuid(3)
DESCRIPTION
Sets the process effective user ID to uid without changing the real user ID.
SYNOPSIS
#include <unistd.h> int seteuid(uid_t uid);
RETURN VALUE
- Returns zero, or -1 and sets errno.
ERRORS
-EINVAL- Uid cannot be represented by the direct ABI.
-EPERM- The requested transition is not allowed for the current effective UID.
-ESRCH- The calling process does not exist.
NOTES
The kernel permits a non‑root process to select its current real or effective UID.