pub unsafe fn geteuid() -> uid_t
Get the effective user ID of the calling process.
let euid = unsafe { nc::geteuid() }; assert!(euid > 0);