Skip to content

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

License

Notifications You must be signed in to change notification settings

jhg/drop-root-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drop root

Set a user id and group id, using the names, to drop root privileges.

Example

use drop_root::set_user_group;

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

Testing

It's tested on Linux. Tests that require run as root are ignored by default, and executed one by one.

About

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

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages