From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Chris Moore" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: ubuntu 7.10 changes the 'sudo' password prompt Date: Thu, 18 Oct 2007 16:55:31 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1192719367 31858 80.91.229.12 (18 Oct 2007 14:56:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Oct 2007 14:56:07 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 18 16:56:07 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IiWmt-0008Ku-4e for ged-emacs-devel@m.gmane.org; Thu, 18 Oct 2007 16:55:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiWml-0008Fu-Tv for ged-emacs-devel@m.gmane.org; Thu, 18 Oct 2007 10:55:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IiWmh-0008FB-Se for emacs-devel@gnu.org; Thu, 18 Oct 2007 10:55:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IiWmf-0008Et-HZ for emacs-devel@gnu.org; Thu, 18 Oct 2007 10:55:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiWmf-0008Eq-E6 for emacs-devel@gnu.org; Thu, 18 Oct 2007 10:55:37 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IiWmf-0007Rs-1m for emacs-devel@gnu.org; Thu, 18 Oct 2007 10:55:37 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IiWme-0006ZA-EH for emacs-pretest-bug@gnu.org; Thu, 18 Oct 2007 10:55:36 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IiWmb-0007R4-Pv for emacs-pretest-bug@gnu.org; Thu, 18 Oct 2007 10:55:35 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.249]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IiWmb-0007QY-Df for emacs-pretest-bug@gnu.org; Thu, 18 Oct 2007 10:55:33 -0400 Original-Received: by an-out-0708.google.com with SMTP id c38so28264ana for ; Thu, 18 Oct 2007 07:55:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=dWvnbasEKihL3mqqHp0sXW9tgMtaPybxZ/FGnoPW6jM=; b=kFUHq96WZX2Kd7Eftze8azAW8opyF8zd6aZx8yaOmxHqn9Thg6ASKgA/LEC4NKEsXF+QCNOsl8+z5PudRD5LL9a+IFcaGqJkllaA6xFIqoKlup5q2TaWqIRQYrO+dhE4Du2HNX5s48LdyOVDIJ6P3EVxMKY1Kn7ddrUpiPPMaQ8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=sLF8x6PLVRhwF/FH1pHt1gsWVHaMzJ/rqGJtZK3Ve94/x/xgEDGGwR5LkygSIrkmuce9EtkC4cUXT9hrEsUt41fSja6KSUKw+8/K/K6o8tEYCz0NskhacTlbmaGw9+TwJAnrFkLtajEmFclAyZMCxII0GnZaAoiRf6u2Zvxd2Qg= Original-Received: by 10.114.110.1 with SMTP id i1mr729374wac.1192719331192; Thu, 18 Oct 2007 07:55:31 -0700 (PDT) Original-Received: by 10.114.235.7 with HTTP; Thu, 18 Oct 2007 07:55:31 -0700 (PDT) Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:81153 gmane.emacs.pretest.bugs:20158 Archived-At: The new 7.10 release of Ubuntu changes the 'sudo' password prompt, so now it says: [sudo] password for chris: The following patch allows comint to recognise it as a password prompt: *** lisp/Backup/comint.el.~1~ Wed Oct 17 00:40:06 2007 --- lisp/comint.el Thu Oct 18 16:52:59 2007 *************** *** 334,343 **** ;; ksu prints a prompt like `Kerberos password for devnull/root@GNU.ORG: '. ;; ssh-add prints a prompt like `Enter passphrase: '. ;; plink prints a prompt like `Passphrase for key "root@GNU.ORG": '. ;; Some implementations of passwd use "Password (again)" as the 2nd prompt. (defcustom comint-password-prompt-regexp "\\(\\([Oo]ld \\|[Nn]ew \\|'s \\|login \\|\ ! Kerberos \\|CVS \\|UNIX \\| SMB \\|LDAP \\|^\\)\ \[Pp]assword\\( (again)\\)?\\|\ pass phrase\\|\\(Enter \\|Repeat \\|Bad \\)?[Pp]assphrase\\)\ \\(?:, try again\\)?\\(?: for [^:]+\\)?:\\s *\\'" --- 334,344 ---- ;; ksu prints a prompt like `Kerberos password for devnull/root@GNU.ORG: '. ;; ssh-add prints a prompt like `Enter passphrase: '. ;; plink prints a prompt like `Passphrase for key "root@GNU.ORG": '. + ;; Ubuntu's sudo prompts like `[sudo] password for user:' ;; Some implementations of passwd use "Password (again)" as the 2nd prompt. (defcustom comint-password-prompt-regexp "\\(\\([Oo]ld \\|[Nn]ew \\|'s \\|login \\|\ ! Kerberos \\|CVS \\|UNIX \\| SMB \\|LDAP \\|\\[sudo] \\|^\\)\ \[Pp]assword\\( (again)\\)?\\|\ pass phrase\\|\\(Enter \\|Repeat \\|Bad \\)?[Pp]assphrase\\)\ \\(?:, try again\\)?\\(?: for [^:]+\\)?:\\s *\\'" And uuencoded: begin 644 sudo.patch.gz M'XL("&US%T<"`W-U9&\N<&%T8V@`W9+?3]LP$,>?X:^XY:5I(&WZ`]C"0[>. M"4V#MJ)TFQ0'S=1N&R6Q+=L9("'^]MEQ6N"!]XDHRITO7W_.=[X@"*#(E.B. M\3*O1'?)RXSI#BTZ3[VGO5^4P'2IH7<"410/HS@ZAGX4G>R'8>BV[?1[UYO* M:3]"[S@^ZL='GYPV>/W8-0P&P\/!<`!U`.#T%')5@9"&I0`;AY="FPPYA3\_ MJ+REDBL06*D[+@FLN`1"_[*J*+J2<_WY?++H3*_.8VAU'$VI38@)>8/XC6DJ M:YS82*SH\SY19"Q_8]=LIZ\/D-,'\%YF]YXQU,+\< M6WMQ]F5F[0U";612H&0FTB:_2;0]N_D[JJ%0EPBN33:"?-=LXU]10;&VWAC; MP[5'#6RK=AF0/XH/013=/0S!^^+[F MZZ2PBU)3\G\_E/XG"T9-;!0`` ` end Chris.