Function nix::unistd::setresuid

source ·
pub fn setresuid(ruid: Uid, euid: Uid, suid: Uid) -> Result<()>
Expand description

Sets the real, effective, and saved uid. (see setresuid(2))

  • ruid: real user id
  • euid: effective user id
  • suid: saved user id
  • returns: Ok or libc error code.

Err is returned if the user doesn’t have permission to set this UID.