Skip to content

jhg/drop-root-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drop root

Drop root privileges.

Examples

use drop_root::set_user_group;

set_user_group("nobody", "nogroup");

Features

  • logging (default): Enable logging via log crate.

Testing

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

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