From: "Chris Moore" <christopher.ian.moore@gmail.com>
To: emacs-pretest-bug@gnu.org
Subject: ubuntu 7.10 changes the 'sudo' password prompt
Date: Thu, 18 Oct 2007 16:55:31 +0200 [thread overview]
Message-ID: <a9691ee20710180755n261471e7t20c700ea09a465fa@mail.gmail.com> (raw)
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]YXQ<UY2R$I1T)(RC77&F0*^<A40
MJ`S"FVVK\?$:9ZSM`5:@-Q3ZC#2)+<TG=+6LE.8EN%Z'VS:$3A1*NJ;WPD@!
M/(1\\R93GA8$$'I,)BRE=]9K*?LM^#ICUD'['V#76+/^^G-NS6+R_;>U,+\<
M6WMQ]F5F[0U";612H&0FTB:_2;0]N_D[JJ%0EPBN33:"?-=LXU]10;&VWAC;
MP[5'#6RK=AF0/XH/0<L'J-D.;6)UTY.;.#VPH1@A!0%"+:^>13=/0S!^^+[F
MZ<!B%K<5TY6Y0E41WE!4@TEL+'U=C!DP&;?>Z2PBU)3\G\_E/XG"T9-;!0``
`
end
Chris.
next reply other threads:[~2007-10-18 14:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-18 14:55 Chris Moore [this message]
2007-10-19 17:42 ` ubuntu 7.10 changes the 'sudo' password prompt Richard Stallman
2007-10-23 7:11 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a9691ee20710180755n261471e7t20c700ea09a465fa@mail.gmail.com \
--to=christopher.ian.moore@gmail.com \
--cc=emacs-pretest-bug@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.