A simple Rust library that can execute commands as root.
use runas::Command;
let status = Command::new("rm")
.arg("/usr/local/my-app")
.status()
.unwrap();
- Documentation
- Issue Tracker
- Examples
- License: Apache-2.0
A simple Rust library that can execute commands as root.
use runas::Command;
let status = Command::new("rm")
.arg("/usr/local/my-app")
.status()
.unwrap();