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

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

Re: How to disconnect ange-ftp permanently?


From: Kevin Rodgers
Subject: Re: How to disconnect ange-ftp permanently?
Date: Thu, 19 Feb 2004 09:52:19 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

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



reply via email to

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