1SETEUID(P)                 POSIX Programmer's Manual                SETEUID(P)
2
3
4

NAME

6       seteuid - set effective user ID
7

SYNOPSIS

9       #include <unistd.h>
10
11       int seteuid(uid_t uid);
12
13

DESCRIPTION

15       If uid is equal to the real user ID or the saved set-user-ID, or if the
16       process has appropriate privileges, seteuid() shall set  the  effective
17       user  ID of the calling process to uid; the real user ID and saved set-
18       user-ID shall remain unchanged.
19
20       The seteuid() function shall not affect the supplementary group list in
21       any way.
22

RETURN VALUE

24       Upon successful completion, 0 shall be returned; otherwise, -1 shall be
25       returned and errno set to indicate the error.
26

ERRORS

28       The seteuid() function shall fail if:
29
30       EINVAL The value of the uid argument is invalid and is not supported by
31              the implementation.
32
33       EPERM  The  process  does  not have appropriate privileges and uid does
34              not match the real group ID or the saved set-group-ID.
35
36
37       The following sections are informative.
38

EXAMPLES

40       None.
41

APPLICATION USAGE

43       None.
44

RATIONALE

46       Refer to the RATIONALE section in setuid() .
47

FUTURE DIRECTIONS

49       None.
50

SEE ALSO

52       exec() , getegid() , geteuid() , getgid() , getuid() , setegid() , set‐
53       gid()  , setregid() , setreuid() , setuid() , the Base Definitions vol‐
54       ume of IEEE Std 1003.1-2001, <sys/types.h>, <unistd.h>
55
57       Portions of this text are reprinted and reproduced in  electronic  form
58       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
59       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
60       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
61       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
62       event of any discrepancy between this version and the original IEEE and
63       The Open Group Standard, the original IEEE and The Open Group  Standard
64       is  the  referee document. The original Standard can be obtained online
65       at http://www.opengroup.org/unix/online.html .
66
67
68
69IEEE/The Open Group                  2003                           SETEUID(P)
Impressum