run-as 1.2.4

Run a command as root (sudo), fork from runas crate
Documentation

run-as

Build Status Crates.io License rustc 1.56.0 Documentation

This crate is a fork of runas

A simple Rust library that can execute commands as root.

use run_as::Command;

let status = Command::new("rm")
    .arg("/usr/local/my-app")
    .status()
    .unwrap();

License and Links