![]() Chapter Contents  | 
![]() Previous  | 
![]() Next  | 
| seteuid | 
| Portability: | POSIX.1 conforming | 
| SYNOPSIS | |
| DESCRIPTION | |
| RETURN VALUE | |
| PORTABILITY | |
| RELATED FUNCTIONS | 
| SYNOPSIS | 
#include <sys/types.h> #include <unistd.h> int seteuid(uid_t userID);
| DESCRIPTION | 
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.  ![[cautionend]](../common/images/cautend.gif)
| RETURN VALUE | 
seteuid
 returns a 
0
if successful and a 
-1
if not successful.
| PORTABILITY | 
The 
seteuid
 function is defined by the POSIX.1a standard.
| RELATED FUNCTIONS | 
geteuid
, 
getuid
, 
seteuid
, 
setgid
 
![]() Chapter Contents  | 
![]() Previous  | 
![]() Next  | 
![]() Top of Page  | 
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.