SUDOERS
Generated by scripts/gen-format-pages.py from docs/data/format-metadata/, FILE_FORMATS.csv and docs/formats-master.csv. Do not edit by hand: change the source, then run the script.
sudoers Preview.
At a glance
| Purpose | A sudoers file: the rules that say which users may run which commands as whom, with defaults and aliases. |
| Extensions | .sudoers |
| Poka parser | poka-sudoers |
| Viewer | poka-text-viewer |
| Depth tier | Parser with a shared viewer (see Depth tiers) |
| Breadth tier | B2 Broad (see Breadth tiers) |
How much Poka reads
B2 Broad. The common content of the current and the common older versions is decoded. Some named features or versions are not, and are listed.
Confidence: medium (the reviewer read the code). Basis: Reviewed 2026-10-26: read parsers/poka-sudoers/src/main.rs (159 lines) and plugin.json. No unit tests or tests/samples.rs; the corpus has no .sudoers and .sudo sample. Covers .sudoers and .sudo. The whole file is shown as plain text under a summary line counting rules, Defaults, User_Alias, Host_Alias, Runas_Alias and Cmnd_Alias, and #include and #includedir directives. Judgement: B2: the full text is shown; the summary is a heuristic count.
What Poka does not read
- Shown as plain text without highlighting
- Rules are not parsed: who may run what is not tabulated
- Rule lines are counted by a heuristic (any line with =)
- Included files are not followed
- Files over 1 MiB are cut (flagged)
Libraries
Libraries Poka uses or has assessed for this format, with the status, licence and language the registry records.
- python-sudoers (pysudoers) (candidate; BSD-3-Clause; Python; https://pypi.org/pypi/pysudoers/json) — Python interface to the sudoers file (v3.0.0, Broad Institute). A search snippet says it is not fully compliant with the sudoers grammar.
Sources
- parsers/poka-sudoers/src/main.rs
- parsers/poka-sudoers/plugin.json