Repository navigation
Sudo notes
Defaults ... # Any user on any host running any command as any user
Defaults@db01 ... # Any user on db01 running any command as any user
Defaults!frob ... # Any user on any host running frob as any user
Defaults:alice ... # User alice on any host running any command as any user
Defaults:%admins ... # Group admins on any host running any command as any user
Defaults>alice ... # Any user on any host running any command as user alice
Defaults>%admins ... # Any user on any host running any command as member of group admins
See
Re-implementation of sudo in Rust, as "a drop-in replacement for common use cases, not an exact clone of Todd Miller's sudo". Installed as default sudo implementation on Ubuntu 26.04. Some features are omitted by design, some by circumstance.
Notably (for Mitogen) the format of the password prompt differs
Mitogen's test-suite tests with some feature in sudo that are omitted in sudo-rs (e.g. requiretty).
See also
- https://github.com/trifectatechfoundation/sudo-rs/blob/main/FAQ.md
- https://github.com/trifectatechfoundation/sudo-rs/blob/main/docs/undocumented-ogsudo-behavior.md
The exact password prompt varies by atleast sudo implementation, sudo version, operating system/packager policy, locale, site config. Other unidentified factors are probable. Known factors include
- The untranslated prompt of sudo-ws has so far been "Password:" or "Password: ".
- sudo-rs adds additional context as prefix and/or suffix.
- Authentication subsytems such as Linux PAM may add prefix or suffix.
- Translations may use whitespace other than U+0020 SPACE. E.g. Some French translations contain u+00A0 NO-BREAK SPACE.
- Translations may use a character other than U+003A COLON. E.g. Chinese & Taiwanese translations use U+FF1A FULLWIDTH COLON.
- OS Vendors or packagers may override or supplement upstream translations with their own.
- Administrators may configure local prompts.
sudo-ws and sudo-rs both have a --prompt option, using this can simplify the problem of identifying the password prompt, from the fully general case. However the prompt we provide will not be used as is, atleast by sudo-rs.