#include <sys/types.h> #include <unistd.h> int seteuid(uid_t userID);
seteuid
changes the effective user ID
of the current process to the ID
specified by userID
.
Note: This function can only be called by a superuser.
seteuid
returns a 0
if successful and
a -1
if not successful.
seteuid
function is defined by the POSIX.1a standard.
geteuid
, getuid
, seteuid
, setgid
Copyright (c) 1998 SAS Institute Inc. Cary, NC, USA. All rights reserved.