# Configuration de sudoers

**URL:** <https://www.debian-fr.org/t/configuration-de-sudoers/85441>\
**Category:** Support Debian\
**Tags:** buster\
**Created:** [Octobre 1, 2021, 12:15 UTC](https://www.debian-fr.org/t/configuration-de-sudoers/85441 "2021-10-01T12:15:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spectre\_fr](https://www.debian-fr.org/user_avatar/www.debian-fr.org/spectre_fr/32/10641_2.png) [@Spectre\_fr](https://www.debian-fr.org/u/Spectre_fr)\
**Post date:** [Octobre 1, 2021, 12:15 UTC](https://www.debian-fr.org/t/configuration-de-sudoers/85441/1 "2021-10-01T12:15:36Z")

</div>

Bonjour à toutes et à tous !

Je souhaite savoir s’il est possible dans le fichier de configuration sudoers de faire un truc du genre:

```
%invited ALL=(ALL) !/sbin/*

```

Voilà voilà, merci de vos futures réponses 🙂

_Edit modo: déplacement dans la catégorie Support_

---

<div class="post-metadata">

**Author:** ![anon70622873](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@anon70622873](https://www.debian-fr.org/u/anon70622873)\
**Post date:** [Octobre 1, 2021, 1:20 UTC](https://www.debian-fr.org/t/configuration-de-sudoers/85441/2 "2021-10-01T13:20:03Z")

</div>

Bonjour,

C’est possible mais cela ne sert strictement à rien.

Les membres su groupe _invited_ pourront tout simplement faire `sudo -i` pour obtenir un shell root, et donc avoir tous les droits.  
Je t’invite à lire la rubrique « Security notes » de la page de man sudoers :

> Limitations of the ‘!’ operator  
> It is generally not effective to “subtract” commands from ALL using the ‘!’ operator. A user can trivially circumvent this by copying  
> the desired command to a different name and then executing that
