* Can see root password when su using M-x Shell
@ 2003-03-09 3:18 Peter Wu
2003-03-09 6:21 ` Daniel Jensen
0 siblings, 1 reply; 3+ messages in thread
From: Peter Wu @ 2003-03-09 3:18 UTC (permalink / raw)
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?
--
Peter Wu
Powered by FreeBSD 4.8-RC
This posting is provided "AS IS" with no warranties, and confers no rights.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Can see root password when su using M-x Shell
2003-03-09 3:18 Can see root password when su using M-x Shell Peter Wu
@ 2003-03-09 6:21 ` Daniel Jensen
2003-03-09 10:42 ` Peter Wu
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jensen @ 2003-03-09 6:21 UTC (permalink / raw)
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)
--
Daniel Jensen
\ (format (concat "mailto:" "%s@%s.%s") "daniel" "bigwalter" "net")
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Can see root password when su using M-x Shell
2003-03-09 6:21 ` Daniel Jensen
@ 2003-03-09 10:42 ` Peter Wu
0 siblings, 0 replies; 3+ messages in thread
From: Peter Wu @ 2003-03-09 10:42 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-03-09 10:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-09 3:18 Can see root password when su using M-x Shell Peter Wu
2003-03-09 6:21 ` Daniel Jensen
2003-03-09 10:42 ` Peter Wu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).