10 releases (3 stable)

1.2.0 Feb 20, 2024
1.1.0 May 15, 2023
1.0.0 Feb 7, 2023
0.2.1 Feb 12, 2020
0.1.0 Jun 15, 2016

#68 in Authentication

Download history 11067/week @ 2024-07-21 13042/week @ 2024-07-28 14522/week @ 2024-08-04 13386/week @ 2024-08-11 15222/week @ 2024-08-18 15362/week @ 2024-08-25 16357/week @ 2024-09-01 14030/week @ 2024-09-08 11944/week @ 2024-09-15 14388/week @ 2024-09-22 15589/week @ 2024-09-29 15885/week @ 2024-10-06 15805/week @ 2024-10-13 15425/week @ 2024-10-20 15623/week @ 2024-10-27 16296/week @ 2024-11-03

64,649 downloads per month
Used in 4 crates (2 directly)

Apache-2.0

14KB
277 lines

runas

Build Status Crates.io License rustc 1.56.0 Documentation

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();

Dependencies

~2–15MB
~145K SLoC