|
Bugzilla – Full Text Bug Listing |
| Summary: | The askpass option don't work anymore | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Dieter9 <drvr741> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.8.21 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
|
Description
Dieter9
2017-09-06 10:14:17 MDT
Sorry but I'm unable to reproduce this. I installed Arch in a VM and see the following behavior:
[millert@arch ~]$ sudo -V
Sudo version 1.8.21p1
Sudoers policy plugin version 1.8.21p1
Sudoers file grammar version 46
Sudoers I/O plugin version 1.8.21p1
[millert@arch ~]$ cat /tmp/askpass
#!/bin/sh
echo 'password'
exit 0
[millert@arch ~]$ SUDO_ASKPASS=/tmp/askpass sudo -A id
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
Sorry, try again.
Sorry, try again.
sudo: 3 incorrect password attempts
This gives me the expected log entry:
sudo[892]: millert : 3 incorrect password attempts ; TTY=pts/0 ; PWD=/home/millert ; USER=root ; COMMAND=/usr/bin/id
I'm now able to reproduce the problem. This is fixed by https://www.sudo.ws/repos/sudo/rev/57f636b6489f I can confirm, that your patch fix the problem. Thank you for your very quick response. :) Sudo 1.8.21p2 is out now which includes the fix. |