Package: sudo
Version: 1.8.12-1
Severity: minor

The sudoers(8) manpage hints at the default value of 'listpw' being
'any', but this does not seem to be the case, as I hope I can
illustrate with the following — only when I explicitly set =any,
then does sudo stop asking for a password:

# egrep 'listpw|NOPASSWD' ../sudoers local-mldonkey-downloads
../sudoers:Defaults listpw
local-mldonkey-downloads:mldonkey albatross=(root) NOPASSWD: MLDONKEY_DOWNLOAD
# su -s/bin/sh mldonkey
$ exec sudo -nl
sudo: a password is required
# sed -i -e 's/listpw$/&=any/' /etc/sudoers
# su -s/bin/sh mldonkey
$ exec sudo -nl
Matching Defaults entries for mldonkey on albatross:
[…]

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_NZ, LC_CTYPE=en_NZ.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.4.4-4
ii  libc6           2.19-22
ii  libpam-modules  1.1.8-3.1
ii  libpam0g        1.1.8-3.1
ii  libselinux1     2.3-2+b1

sudo recommends no packages.

sudo suggests no packages.

-- Configuration Files:
/etc/sudoers [Errno 13] Permission denied: u'/etc/sudoers'
/etc/sudoers.d/README [Errno 13] Permission denied: u'/etc/sudoers.d/README'

-- debconf-show failed


-- 
 .''`.   martin f. krafft <[email protected]> @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)

Reply via email to