# run-as
[](https://github.com/ssrlive/run-as/actions?query=workflow%3ATests)
[](https://crates.io/crates/run-as)
[](https://github.com/ssrlive/run-as/blob/master/LICENSE)
[](https://img.shields.io/badge/rust-1.85%2B-orange.svg)
[](https://docs.rs/run-as)
> This crate is a fork of [runas](https://github.com/mitsuhiko/rust-runas)
A simple Rust library that can execute commands as root.
```rust
use run_as::Command;
let status = Command::new("rm")
.arg("/usr/local/my-app")
.status()
.unwrap();
```
## License and Links
* [Documentation](https://docs.rs/run-as/)
* [Issue Tracker](https://github.com/ssrlive/run-as/issues)
* [Examples](https://github.com/ssrlive/run-as/tree/master/examples)
* License: [Apache-2.0](https://github.com/ssrlive/run-as/blob/main/LICENSE)