From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: ubuntu 7.10 changes the 'sudo' password prompt Date: Fri, 19 Oct 2007 13:42:21 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1192815889 10059 80.91.229.12 (19 Oct 2007 17:44:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Oct 2007 17:44:49 +0000 (UTC) Cc: Chris Moore To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 19 19:44:49 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 1Iivtw-0002lQ-Lw for ged-emacs-devel@m.gmane.org; Fri, 19 Oct 2007 19:44:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iivtp-00032x-7T for ged-emacs-devel@m.gmane.org; Fri, 19 Oct 2007 13:44:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iivrc-0002BG-6t for emacs-devel@gnu.org; Fri, 19 Oct 2007 13:42:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iivrb-0002AY-6e for emacs-devel@gnu.org; Fri, 19 Oct 2007 13:42:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iivrb-0002AO-1v for emacs-devel@gnu.org; Fri, 19 Oct 2007 13:42:23 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iivra-0001sP-H0 for emacs-devel@gnu.org; Fri, 19 Oct 2007 13:42:22 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IivrZ-00032h-R6; Fri, 19 Oct 2007 13:42:21 -0400 In-reply-to: (christopher.ian.moore@gmail.com) 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:81239 gmane.emacs.pretest.bugs:20172 Archived-At: Would someone please install this, then ack? Date: Thu, 18 Oct 2007 16:55:31 +0200 From: "Chris Moore" To: emacs-pretest-bug@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Cc: Subject: ubuntu 7.10 changes the 'sudo' password prompt 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. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel