tech:notes_userhelper_-_usermode
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_userhelper_-_usermode [2025/06/01 15:54] – Jean-Baptiste | tech:notes_userhelper_-_usermode [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Notes userhelper - usermode | ||
| + | |||
| + | # userhelper - usermode | ||
| + | |||
| + | Voir : | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * consolehelper | ||
| + | * [[Notes sécurité PAM]] | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | Voir aussi : | ||
| + | * [[notes_sudo_et_sudoers]] | ||
| + | * [[Rootkit pwnkit - local privilege escalation vulnerability pkexec cve-2021-4034]] | ||
| + | |||
| + | usermode contains the userhelper program, which can be used to allow configured | ||
| + | programs to be run with superuser privileges by ordinary users, and several | ||
| + | graphical tools for users: | ||
| + | * userinfo allows users to change their finger information. | ||
| + | * usermount lets users mount, unmount, and format filesystems. | ||
| + | * userpasswd allows users to change their passwords. | ||
| + | |||
| + | ~~~bash | ||
| + | sudo / | ||
| + | ~~~ | ||
| + | |||
| + | `/ | ||
| + | ~~~ini | ||
| + | USER=root | ||
| + | UGROUPS=wheel | ||
| + | ~~~ | ||
| + | |||
| + | `/ | ||
| + | ~~~ini | ||
| + | USER=root | ||
| + | PROGRAM=/ | ||
| + | SESSION=true | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ | ||
| + | # ls -l / | ||
| + | lrwxrwxrwx. 1 root root 22 Feb 23 07:16 / | ||
| + | |||
| + | # grep ' | ||
| + | PROGRAM=/ | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | ## Test | ||
| + | |||
| + | `/ | ||
| + | ~~~ | ||
| + | #%PAM-1.0 | ||
| + | auth include | ||
| + | account | ||
| + | session | ||
| + | ~~~ | ||
| + | |||
| + | ou | ||
| + | |||
| + | `/ | ||
| + | ~~~ | ||
| + | #%PAM-1.0 | ||
| + | auth | ||
| + | auth required pam_warn.so | ||
| + | auth required pam_deny.so | ||
| + | auth | ||
| + | account | ||
| + | password | ||
| + | session | ||
| + | ~~~ | ||
| + | |||
| + | `/ | ||
| + | ~~~ini | ||
| + | USER=root | ||
| + | # | ||
| + | PROGRAM=/ | ||
| + | SESSION=true | ||
| + | # | ||
| + | # | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | / | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
