# trifectatechfoundation/sudo-rs

A memory safe implementation of sudo and su.

Repository: https://github.com/trifectatechfoundation/sudo-rs
Canonical: https://ross.abutalabs.com/products/sudo-rs
Language: Rust
License: Apache-2.0
License Family: permissive
Last push: 2026-08-26T17:04:53+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 78, longevity 97
- inputs: {"age_days": 1360, "days_push": 7, "days_rel": 71, "gap_med": 36.5, "n_releases_24m": 11}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4447, forks 179 (observed 2026-08-28T04:08:50.430261+00:00)

## What it is
A memory-safe, safety-oriented reimplementation of the classic sudo and su utilities written in Rust. It is actively maintained, independently audited, and ships as a default or packaged alternative in major Linux distributions.

## Use cases
- replace C sudo with a memory-safe implementation on Linux
- reduce privilege-escalation attack surface on servers
- run sudo and su commands with fewer memory safety vulnerabilities
- adopt sudo-rs as the default sudo in a distribution
- audit-friendly privilege management tooling

## When to choose
- you want a memory-safe sudo/su on Linux or FreeBSD
- you maintain a distribution or hardened system where sudo CVEs are a concern
- you need an audited, actively maintained privilege escalation tool

## When to avoid
- you rely on sudo features not yet implemented in sudo-rs
- you need sudo on macOS or other non-Linux/BSD platforms
- you require full drop-in compatibility with original sudo plugins and scripts

## Facets
- artifact type: cli-tool
- maturity: active
- function: security, cli
- domain: security, operating-systems, developer-tools
- platform: bsd, rust
- tags: sudo, su, memory-safety, privilege-escalation, rust-rewrite, linux

## Member repositories
- trifectatechfoundation/sudo-rs (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:50.430261+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:20:47.896640+00:00, confidence not recorded.
  - readme: https://github.com/trifectatechfoundation/sudo-rs (fetched 2026-08-28T04:08:50.430261+00:00, sha 27253a527b7e)
  - registry_crates: https://crates.io/api/v1/crates/sudo-rs (fetched 2026-08-29T09:07:48.352757+00:00, sha 3e8360cc96f3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
