#privileges #daemon #security #service

drop-root

Set a user id and group (using the names) id to drop root privileges

2 releases

0.1.1 Nov 13, 2020
0.1.0 Nov 12, 2020

#291 in FFI

47 downloads per month

Unlicense

6KB
82 lines

drop-root-rs

Set a user id and group (using the names) id to drop root privileges

Example

use drop_root::set_user_group;

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

Dependencies

~130KB