emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ubuntu 7.10 changes the 'sudo' password prompt


From: Chris Moore
Subject: ubuntu 7.10 changes the 'sudo' password prompt
Date: Thu, 18 Oct 2007 16:55:31 +0200

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/address@hidden: '.
  ;; ssh-add prints a prompt like `Enter passphrase: '.
  ;; plink prints a prompt like `Passphrase for key "address@hidden": '.
  ;; 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/address@hidden: '.
  ;; ssh-add prints a prompt like `Enter passphrase: '.
  ;; plink prints a prompt like `Passphrase for key "address@hidden": '.
+ ;; 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<&address@hidden,>?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/address@hidden>R'8>BV[?1[UYO*
M:3]"address@hidden'GYPV>/W8-0P&P\/!<`!U`.#T%')address@hidden"&I0`;AY="FPPYA3\_
address@hidden"_[*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;address@hidden
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.;address@hidden"+:^>13=/0S!^^+[F
MZ<!B%K<address@hidden'U=C!DP&;?>Z2PBU)3\G\_E/XG"T9-;!0``
`
end

Chris.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]