com.limdm.sudo (list)¶
Console: sudo rules.
{"rules": [{"name": "developers", "principals": ["%developers"], "run_as": "",
"commands": ["/usr/bin/apt-get update", "/usr/bin/systemctl restart nginx"], "nopasswd": false}],
"timestamp_timeout": 5}
| Field | Type | Rules |
|---|---|---|
rules[].name |
text | a-z, 0-9, _, -, up to 40 characters (sudo ignores files with dots) |
rules[].principals |
list of text | at least one user or %group; ALL is not allowed |
rules[].run_as |
text | empty (root), a user or ALL |
rules[].commands |
list of text | at least one absolute path with plain arguments (up to 300 characters), or ALL |
rules[].nopasswd |
true or false | no password prompt |
timestamp_timeout |
number | optional, 0 to 60 minutes; 0 asks every time |
Rules merge by name; the last timestamp_timeout set wins.
- One drop in per rule,
/etc/sudoers.d/70-limdm-<name>(mode 0440). - Sudoers metacharacters (
,:=\!*) are rejected in commands, so one entry is exactly one command without wildcards. - Every file is checked with
visudo -c -fbefore it is installed. If the whole configuration failsvisudo -cafterwards, the managed files are removed again. - The compliance defaults (
use_pty,logfile) live in/etc/sudoers.d/60-limdm.
Field reference¶
Generated from the payload schema of the server (GET /api/v1/schemas/{type}), the same reference the console editor shows. Unknown fields are rejected.
com.limdm.sudo¶
Console: sudo rules. sudo rules for users and groups.
| Field | Type | Meaning | Limits |
|---|---|---|---|
rules |
list of object | Rules | |
rules[].name |
string | Name | |
rules[].principals |
list of string | Users and groups User names or %group. | |
rules[].run_as |
string | Run as Empty means root. | |
rules[].commands |
list of string | Commands Absolute paths with optional arguments, or ALL. | |
rules[].nopasswd |
boolean | Without password | |
timestamp_timeout |
integer | Password remembered (minutes) 0 asks every time, at most 60. | min 0; max 60 |