unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to disconnect ange-ftp permanently?
@ 2004-02-15 13:10 Nickolai Dobrynin
  0 siblings, 0 replies; 2+ messages in thread
From: Nickolai Dobrynin @ 2004-02-15 13:10 UTC (permalink / raw)


I use ange-ftp-kill-ftp-process to break an on-going ftp connection
to another UNIX server. However, this really doesn't do the job
because, no matter what buffer I invoke this commands on, it immediately
re-activates the connection without asking for any passwords, once
I request for it. So, it feels as though I never exited it.

Is there any way I could exit from an ftp connection permanently (while
keeping Emacs itself running) so that next time I would be to supply the
password for the remote account just like I did when I first started
ange-ftp? It's just a simple safety measure.

I am using GNU Emacs 21.3.1 on Mandrake Linux 9.2. I searched actively
for this information, but without any success. Any help and advice?


Many thanks,

Nickolai Dobrynin

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to disconnect ange-ftp permanently?
       [not found] <mailman.2425.1076851546.928.help-gnu-emacs@gnu.org>
@ 2004-02-19 16:52 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2004-02-19 16:52 UTC (permalink / raw)


Nickolai Dobrynin wrote:

> I use ange-ftp-kill-ftp-process to break an on-going ftp connection
> to another UNIX server. However, this really doesn't do the job
> because, no matter what buffer I invoke this commands on, it immediately
> re-activates the connection without asking for any passwords, once
> I request for it. So, it feels as though I never exited it.
> 
> Is there any way I could exit from an ftp connection permanently (while
> keeping Emacs itself running) so that next time I would be to supply the
> password for the remote account just like I did when I first started
> ange-ftp? It's just a simple safety measure.
> 
> I am using GNU Emacs 21.3.1 on Mandrake Linux 9.2. I searched actively
> for this information, but without any success. Any help and advice?

You need to remove the cached password as well:


(defun ange-ftp-unset-passwd (host user)
   "For a given HOST and USER, remove the associated password from the cache."
   (interactive (list (read-string "Host: ")
		     (read-string "User: ")))
   ;; Why does ange-ftp-del-hash-entry copy all symbols but the key
   ;; instead of just unintern the key?
   (ange-ftp-put-hash-entry (ange-ftp-generate-passwd-key host user)
			   nil
			   ange-ftp-passwd-hashtable))

-- 
Kevin Rodgers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-19 16:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.2425.1076851546.928.help-gnu-emacs@gnu.org>
2004-02-19 16:52 ` How to disconnect ange-ftp permanently? Kevin Rodgers
2004-02-15 13:10 Nickolai Dobrynin

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).