all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Gleb Nemshilov" <gleb@fastmail.com>
To: "Michael Albinus" <michael.albinus@gmx.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Telling Tramp NOT to use authinfo.gpg
Date: Mon, 07 Dec 2020 00:53:12 +0700	[thread overview]
Message-ID: <c348c2b1-fdc3-4624-824b-d363ea015048@www.fastmail.com> (raw)
In-Reply-To: <87y2icbp5a.fsf@gmx.de>

Hi Michael!

Thank you, it works perfectly!

However it changes the prompt message and I understand why it happens. The original function has a lot of code, and I couldn't find which part is responsible for the prompt message. Is it possible to get similar behaviour and see the name of the user/host for which I enter the password?

--
Best regards,
Gleb

On Sat, Dec 5, 2020, at 16:03, Michael Albinus wrote:
> "Gleb Nemshilov" <gleb@fastmail.com> writes:
> 
> Hi Gleb,
> 
> > I use authinfo.gpg file for storing passwrods for Gnus only. This
> > causes Tramp to constantly ask password for .authinfo.gpg.
> >
> > Is it possible to disable this behaviour?
> >
> > I tried setting "tramp-completion-use-auth-sources" to nil, but that
> > does not help and I still get prompted for the password each time I
> > use Tramp with something like "/su::/" and pressing Tab.
> 
> When nil, this user option disables to use your .authinfo.pgp when
> completing host names. So you shall keep it nil.
> 
> Disabling .authinfo.gpg for Tramp is not foreseen. The most simple
> workaround is to eval after loading tramp.el
> 
> (fset #'tramp-read-passwd
>       (lambda (key &optional prompt)
> 	(password-read (or prompt "Password: ") key)))
> 
> > Best regards,
> > Gleb
> 
> Best regards, Michael.
>



  reply	other threads:[~2020-12-06 17:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-04 22:33 Telling Tramp NOT to use authinfo.gpg Gleb Nemshilov
2020-12-05  9:03 ` Michael Albinus
2020-12-06 17:53   ` Gleb Nemshilov [this message]
2020-12-07  9:43     ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c348c2b1-fdc3-4624-824b-d363ea015048@www.fastmail.com \
    --to=gleb@fastmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.