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

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

#288 in FFI

Download history 23/week @ 2024-01-21 23/week @ 2024-01-28 6/week @ 2024-02-18 22/week @ 2024-02-25 17/week @ 2024-03-03 19/week @ 2024-03-10 1/week @ 2024-03-17 1/week @ 2024-03-24 44/week @ 2024-03-31

67 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