Function nix::unistd::setuid

pub fn setuid(uid: Uid) -> Result<()>
Documentation

Set the user ID

See also setuid(2)