Package: sudo
Version: 1.7.4p4-3
Severity: normal

If sudo is run without a TTY, it always tries to prompt for a password, even
if it would not need one with a TTY.

Example:
$ sudo true
<prompts, ticket is now live, OK>
$ sudo true
<does not prompt, OK>
$ sudo true </dev/null &>/dev/null
<prompts, why?>
$ sudo -n true </dev/null &>/tmp/sudo.out ; echo $?
1
<failed>
$ cat /tmp/sudo.out
sudo: sorry, a password is required to run sudo

My sudoers file has "Defaults !tty_tickets", so sudo at least shouldn't be
deciding that there is no valid ticket due to the lack of a tty.

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

Kernel: Linux 2.6.35.5-1 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages sudo depends on:
ii  libc6                         2.11.2-6   Embedded GNU C Library: Shared lib
ii  libpam-modules                1.1.1-6    Pluggable Authentication Modules f
ii  libpam0g                      1.1.1-6    Pluggable Authentication Modules l

sudo recommends no packages.

sudo suggests no packages.

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

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to