int setreuid(uid_t ruid, uid_t euid);
When the first NuTCRACKER Platform process is executed in a new process group, the real user and group IDs, effective user and group IDs, and saved user and group IDs of the process are set based on the process token.
When a NuTCRACKER Platform
process calls one of the
Is the new real user ID. If this is -1, the real user ID is not changed.
Is the new effective user ID. If this is -1, the effective user ID is not changed.
The value of ruid or euid is out of range.
The process does not have appropriate privileges (the effective user ID is not 0) and ruid and euid do not match the real user ID or the saved user ID.
UNIX 98, with exceptions.
The 2012/8.1/2012R2/10/2016/2019 security model is significantly different from the UNIX security model. The NuTCRACKER Platform mapping of the UNIX security model to Windows, and vice-versa, is discussed in detail under Security in the Windows Concepts chapter of the PTC MKS Toolkit UNIX to Windows Porting Guide.
On 2012/8.1/2012R2/10/2016/2019, the Administrator and System accounts are mapped to uid 0; only
these accounts have permission to execute
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
_NutForkExecl(), _NutForkExecle(), _NutForkExeclp(), _NutForkExeclpe(), _NutForkExecv(), _NutForkExecve(), _NutForkExecvp(), _NutForkExecvpe(), execl(), execle(), execlp(), execlpe(), execv(), execve(), execvp(), execvpe(), getegid(), geteuid(), getgid(), getuid(), setgid(), setregid(), setuid()
PTC MKS Toolkit 10.3 Documentation Build 39.