Function users::switch::set_both_uid
[−]
[src]
pub fn set_both_uid(ruid: uid_t, euid: uid_t) -> IOResult<()>
Sets both the current user and the effective user for the running
process to the ones with the given user IDs. Uses setreuid
internally.
Typically, trying to switch to anyone other than the user already running the process requires root privileges.