| Summary: | Ошибка отображения имени целевого пользователяпри использовании ключа Default targetepw | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Sisyphus | Reporter: | zmeigorynych <emgyrvarermeis> | ||||
| Component: | sudo | Assignee: | Evgeny Sinelnikov <sin> | ||||
| Status: | CLOSED FIXED | QA Contact: | qa-sisyphus | ||||
| Severity: | minor | ||||||
| Priority: | P5 | CC: | asy, sin | ||||
| Version: | unstable | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Attachments: |
|
||||||
Параметры настройки targetepw и rootpw используюся только с опцией -u и относятся к имени пользователя, который задан через эту опцию. Нет, оно баг: # exit [asy@home ~]$ sudo su [sudo] password for asy: [root@home asy]# А вводил я пароль root, а не как в подсказке "password for asy". /etc/sudoers.d/rootpw: Defaults rootpw asy ALL=(ALL) ALL "Это не бага - это фича"! [sin@base ~]$ sudo ls [sudo] password for sin: sudo: a password is required [sin@base ~]$ SUDO_PROMPT="[sudo] password for %p: " sudo ls [sudo] password for root: sudo: a password is required [sin@base ~]$ SUDO_PROMPT="[sudo] password for (%u): " sudo ls [sudo] password for (sin): sudo: a password is required У нас такой PASSPROMPT уже давно: - https://bugzilla.altlinux.org/13719 - https://git.altlinux.org/gears/s/sudo.git?p=sudo.git;a=commit;h=0d06eba85ea1b6c5107cb8ebc2c227e2d76413f8 в Debian также, как в RedHat. - https://salsa.debian.org/sudo-team/sudo/-/commit/3493c61f + * tweak default password prompt as %u doesn't make sense. Accept patch from + Patrick Schoenfeld (recommend upstream accept it too) that adds a %p and + uses it by default, closes: #454409 - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=454409 sudo-1:1.9.11p3-alt2 -> sisyphus:
Fri Oct 21 2022 Evgeny Sinelnikov <sin@altlinux> 1:1.9.11p3-alt2
- Fix sudowheel control to be more flexible and supported the default 'ALL:ALL'
Runas_Spec with group alias specified.
- Fix initialization error in post-scripts for sudoreplay and sudowheel controls
during first installation process (closes: 41907).
Thu Oct 20 2022 Evgeny Sinelnikov <sin@altlinux> 1:1.9.11p3-alt1
- Update to latest stable release.
- Major improvemnents from latest Sisyphus release:
+ Added new log_passwords and passprompt_regex settings to sudo_logsrvd that
operate like the sudoers options when logging terminal input.
+ A new noninteractive_auth sudoers option has been added to enable PAM
authentication in non-interactive mode.
+ When sudo is run in non-interactive mode (with the -n option), it will now
attempt PAM authentication and only exit with an error if user interaction is
required.
+ The intercept and log_subcmds functionality can now use ptrace(2) on Linux
systems that support seccomp(2) filtering.
- Tweak default password prompt as %u doesn't make sense. Improve it by old fix
from Patrick Schoenfeld that adds a %p and uses it by default (closes: 38612).
|
Created attachment 8835 [details] Скриншот ошибки sudo При использовании в файле конфигурации sudoers ключей Default targetepw или Default rootpw, при которых при sudo запрашивается пароль root при использовании sudo, в терминале отображается, что необходимо ввести пароль пользователя, хотя подходит исключительно пароль суперпользователя, как и положено, согласно этому параметру.