Package: sudo
Version: 1.8.21-1
Severity: normal

Dear Maintainer,

When using the option -A, sudo does not run the command after 
prompting for the password.

I tried the following:

    $ export SUDO_ASKPASS=/usr/bin/ssh-askpass
    $ sudo -A echo a
    $

where I get the last prompt after correctly entering the password in 
ssh-askpass.
If I enter a wrong password, it correctly displays an error message 
and asks again for the password.

Weirder, I get:

    $ export SUDO_ASKPASS=/usr/bin/ssh-askpass
    $ sudo -A echo a
    $ sudo -A echo a
    a

where the second run doesn’t need the password, since it was entered 
the first time… So I can work-around the bug adding a dummy
sudo -A echo > /dev/null
before the useful sudo.

Best regards,
Samuel


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.12.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8), 
LANGUAGE=es_AR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages sudo depends on:
ii  libaudit1       1:2.7.7-1+b2
ii  libc6           2.24-17
ii  libpam-modules  1.1.8-3.6
ii  libpam0g        1.1.8-3.6
ii  libselinux1     2.6-3+b2
ii  lsb-base        9.20170808

sudo recommends no packages.

sudo suggests no packages.

-- Configuration Files:
/etc/sudoers [Errno 13] Permiso denegado: '/etc/sudoers'
/etc/sudoers.d/README [Errno 13] Permiso denegado: '/etc/sudoers.d/README'

-- no debconf information

Reply via email to