Crates.io | runas-with-inherited-cmd |
lib.rs | runas-with-inherited-cmd |
version | 1.2.0 |
created_at | 2025-08-18 16:28:54.413721+00 |
updated_at | 2025-08-18 16:28:54.413721+00 |
description | Identical + inherited cmd; Run a command as root (sudo) |
homepage | https://github.com/rustonbsd/rust-runas |
repository | |
max_upload_size | |
id | 1800754 |
size | 39,756 |
A simple Rust library that can execute commands as root.
use runas_with_inherited_cmd::Command;
let status = Command::new("rm")
.arg("/usr/local/my-app")
.status()
.unwrap();