Crates.io | drop-root |
lib.rs | drop-root |
version | 0.1.1 |
source | src |
created_at | 2020-11-12 19:53:05.902721 |
updated_at | 2020-11-13 13:01:58.504829 |
description | Set a user id and group (using the names) id to drop root privileges |
homepage | |
repository | https://github.com/jhg/drop-root-rs |
max_upload_size | |
id | 311740 |
size | 6,257 |
Set a user id and group (using the names) id to drop root privileges
use drop_root::set_user_group;
fn main() {
// ...
set_user_group("nobody", "nogroup");
// ...
}