help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Can see root password when su using M-x Shell


From: Peter Wu
Subject: Re: Can see root password when su using M-x Shell
Date: Sun, 09 Mar 2003 18:42:32 +0800
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (berkeley-unix)

daniel@bigwalter.net (Daniel Jensen) writes:

> Peter Wu <peterwu@hotmail.com> 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)

That's it! Thanks! :)

-- 
Peter Wu
Powered by FreeBSD 4.8-RC

This posting is provided "AS IS" with no warranties, and confers no rights.


reply via email to

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