Может вы знаете как работающий процесс передать другому юзеру ?
системные вызовы :
seteuid If uid is equal to the real user ID or the saved set-user-ID, or if the process has appropriate privileges, seteuid() shall set the effective user ID of the calling process to uid; the real user ID and saved set-user-ID shall remain unchanged.
The seteuid() function shall not affect the supplementary group list in any way.
setreuid function shall set the real and effective user IDs of the current process to the values specified by the ruid and euid arguments. If ruid or euid is -1, the corresponding effective or real user ID of the current process shall be left unchanged.
A process with appropriate privileges can set either ID to any value. An unprivileged process can only set the effective user ID if the euid argument is equal to either the real, effective, or saved user ID of the process.
It is unspecified whether a process without appropriate privileges is permitted to change the real user ID to match the current real, effective, or saved set-user-ID of the process.
setgid If the effective user ID of the process is the root user, the process's real, effective, and saved group IDs are set to the value of the GID parameter. Otherwise, the process effective group ID is reset if the GID parameter is equal to either the current real or saved group IDs, or one of its supplementary group IDs. Supplementary group IDs of the calling process are not changed.
setegid The process effective group ID is reset if one of the following conditions is met:
- The EGID parameter is equal to either the current real or saved group IDs.
- The EGID parameter is equal to one of its supplementary group IDs.
- The effective user ID of the process is the root user.
setregid The RGID and EGID parameters can have one of the following relationships:
RGID != EGID
If the EGID parameter is equal to either the process's real or saved group IDs, the process effective group ID is set to the EGID parameter. Otherwise, the EPERM error code is returned.
RGID == EGID
If the effective user ID of the process is the root user, the process's real and effective group IDs are set to the EGID parameter. If the EGID parameter is equal to the process's real or saved group IDs, the process effective group ID is set to EGID. Otherwise, the EPERM error code is returned.
setgidx The which parameter can have one of the following values:
ID_EFFECTIVE
GID must be either the real or saved GID or one of the values in the concurrent group set. The effective group ID for the current process will be set to GID.
ID_EFFECTIVE|ID_REAL
Invoker must have appropriate privilege. The real and effective group ID for the current process will be set to GID.
ID_EFFECTIVE|ID_REAL|ID_SAVED
Invoker must have appropriate privilege. The real, effective and saved group ID for the current process will be set to GID.