#privileges #daemon #security #service #user-group #user-id

drop-root

使用用户ID和组(使用名称)设置ID以释放root权限

2个版本

0.1.1 2020年11月13日
0.1.0 2020年11月12日

#305 in FFI

29 monthly downloads

Unlicense

6KB
82 行(不含注释)

drop-root-rs

使用用户ID和组(使用名称)设置ID以释放root权限

示例

use drop_root::set_user_group;

fn main() {
    // ...
    set_user_group("nobody", "nogroup");
    // ...
}

依赖项

~130KB