tech:notes_sudo_et_sudoers
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| tech:notes_sudo_et_sudoers [2025/10/28 15:28] – Jean-Baptiste | tech:notes_sudo_et_sudoers [2026/03/03 17:04] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 56: | Ligne 56: | ||
| </ | </ | ||
| + | Restricting a sudo command to specific arguments | ||
| + | <code bash> | ||
| + | user ALL=(root) NOPASSWD: / | ||
| + | </ | ||
| + | |||
| + | Prohibiting Command Arguments with sudo | ||
| + | Follow the program name with the single argument “” in / | ||
| + | <code bash> | ||
| + | smith ALL = (root) / | ||
| + | </ | ||
tech/notes_sudo_et_sudoers.1761661732.txt.gz · Dernière modification : de Jean-Baptiste
