The seteuid callable service sets the effective user ID (UID) of a process.
Operation | Environment |
---|---|
Authorization: | Supervisor state or problem state, any PSW key |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN = HASN |
AMODE (BPX1SEU): | 31-bit |
AMODE (BPX4SEU): | 64-bit |
ASC mode: | Primary mode |
Interrupt status: | Enabled for interrupts |
Locks: | Unlocked |
Control parameters: | All parameters must be addressable by the caller and in the primary address space. |
|
AMODE 64 callers use BPX4SEU with the same parameters.
The name of a fullword that contains the user ID that the process is to assume.
The name of a fullword in which the seteuid service returns 0 if the request is successful, or -1 if it is not successful.
Return_code | Explanation |
---|---|
EINVAL | The User_ID that was specified is incorrect. |
EPERM | The process does not have the appropriate privileges to set the user ID. Refer to Authorization for information on appropriate privileges. |
EMVSSAF2ERR | The SAF call IRRSEU00 incurred an error. |
RACF return code | RACF reason code | Explanation |
---|---|---|
8 | 4 | UID is not defined to RACF |
8 | 8 | User not authorized to change UID |
8 | 12 | Internal error during RACF processing |
8 | 16 | Unable to establish recovery |
See the list of restrictions in setuid (BPX1SUI, BPX4SUI) — Set user IDs.
For an example using this callable service, see BPX1SEU (seteuid) example.