Your message dated Mon, 31 Aug 2009 13:22:19 -0600 (MDT)
with message-id <[email protected]>
and subject line fixed upstream
has caused the Debian Bug report #299335,
regarding please remove the lecture from sudo's first invocation or provide an
option
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
299335: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=299335
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sudo
Version: 1.6.8p5-1
Severity: wishlist
Although the lecture has never been something that bothered me a lot,
because it only happens once, it just came to my attention how complex
it may make applications which try to use sudo non-interactively, like
gksu does. Take a look here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=296414
I'd suggest simply removing the lecture thing, but I'd be completely
happy with a way of telling sudo to not display it. Would you accept
a patch for a command-line argument?
Thanks,
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (990, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-386
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Versions of packages sudo depends on:
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libpam-modules 0.76-22 Pluggable Authentication Modules f
ii libpam0g 0.76-22 Pluggable Authentication Modules l
-- no debconf information
--- End Message ---
--- Begin Message ---
Modern versions of sudo have a '-n' (non-interactive) flag that achieves the
desired result, by causing sudo to exit with a discernable error code if
called non-interactively when a password would be required. This exit happens
before the lecture logic is hit, so the desired effect is achieved.
Bdale
--- End Message ---