From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: daniel@bigwalter.net (Daniel Jensen) Newsgroups: gmane.emacs.help Subject: Re: Can see root password when su using M-x Shell Date: Sun, 09 Mar 2003 07:21:27 +0100 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <861y1hys9k.fsf@bigwalter.net> References: <86headb538.fsf@vanilla.bsd> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047191135 1550 80.91.224.249 (9 Mar 2003 06:25:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 9 Mar 2003 06:25:35 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 09 07:25:34 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18ruFa-0000Oq-00 for ; Sun, 09 Mar 2003 07:25:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ruFV-0003OD-00 for gnu-help-gnu-emacs@m.gmane.org; Sun, 09 Mar 2003 01:25:29 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!as16-3-5.ld.bonet.SE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: as16-3-5.ld.bonet.se (217.215.193.155) Original-X-Trace: fu-berlin.de 1047190888 65296416 217.215.193.155 (16 [147297]) User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.3.50 X-Face: -Rsl1W"; m,Et{utwCr{(/^~^uc9kX*HiOI4}8{-*Bv\5Ts{vc4`IEVH+dgGkqn)2Y_]JC/E Zfu@`CnKWqyOwWs"m"hSGQ^Hp{]/ZP;C<$5$kr}Ff0+}bK},}H|#d% Cancel-Lock: sha1:WpM8JsXsuIntyNg+QLyYzw2R+JI= Original-Xref: shelby.stanford.edu gnu.emacs.help:110928 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7429 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7429 Peter Wu writes: > If I M-x shell to go to Shell mode, the password is just displayed on the > screen when I su to root. Is there any way to make the password invisible > when I type it? Yes, this should do the trick: (add-hook 'comint-output-filter-functions 'comint-watch-for-password-prompt) -- Daniel Jensen \ (format (concat "mailto:" "%s@%s.%s") "daniel" "bigwalter" "net")