memoinfo:group_sudo
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| memoinfo:group_sudo [2022/06/01 07:11] – créée - modification externe 127.0.0.1 | memoinfo:group_sudo [2025/05/01 08:37] (Version actuelle) – créée - modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | source http:// | ||
| + | |||
| + | Pour donner à un utilisateur (antoine) les privilèges root , on doit d’abord regarder le fichier / | ||
| + | < | ||
| + | |||
| + | Vous y trouverez les lignes suivantes: | ||
| + | |||
| + | **# Members of the admin group may gain root privileges | ||
| + | %admin ALL=(ALL) ALL | ||
| + | starmate ALL=(ALL) ALL** | ||
| + | |||
| + | Vous avez donc deux solutions, soit ajouter l’utilisateur au groupe admin: | ||
| + | |||
| + | Pour donner à un utilisateur (antoine) les privilèges root , on doit d’abord regarder le fichier / | ||
| + | |||
| + | cat / | ||
| + | |||
| + | Vous y trouverez les lignes suivantes: | ||
| + | |||
| + | # Members of the admin group may gain root privileges | ||
| + | %admin ALL=(ALL) ALL | ||
| + | starmate ALL=(ALL) ALL | ||
| + | |||
| + | Vous avez donc deux solutions, soit ajouter l’utilisateur au groupe admin: | ||
| + | |||
| + | < | ||
| + | |||
| + | ou | ||
| + | |||
| + | < | ||
| + | |||
| + | Soit vous éditez le fichier / | ||
| + | |||
| + | |||
| + | < | ||
| + | |||
| + | |||
| + | Et y rajouter ça la fin: | ||
| + | |||
| + | antoine ALL=(ALL) ALL | ||
| + | |||
| + | ou alors pour une commande spécifique et sans demande du mot de passe: | ||
| + | |||
| + | antoine ALL=NOPASSWD:/ | ||
