Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Brady Trainor <algebrat@uw.edu>
To: Sharon Kimble <boudiccas@skimble.plus.com>
Cc: info-gnus-english@gnu.org
Subject: Re: Prevent "save to ~/.authinfo[Y/y/N/n]" prompt
Date: Mon, 29 Sep 2014 19:25:32 -0700	[thread overview]
Message-ID: <87vbo5rgir.fsf@uw.edu> (raw)
In-Reply-To: <87egutzzwh.fsf@skimble.plus.com> (Sharon Kimble's message of "Tue, 30 Sep 2014 01:59:42 +0100")

Sharon Kimble <boudiccas@skimble.plus.com> writes:

> Brady Trainor <algebrat@uw.edu> writes:
>
>> Hi, something is wrong with my gpg use, so until I fix it, I will just
>> enter my password for each use. (I will likely start a new thread about
>> my gpg soon.) 
>>
>> But something I never really liked, is the prompt when doing so to save
>> this information in `~/.authinfo'. 
>>
>> Is there a way to prevent this prompt. I think it'd be nice for initial
>> setup of Gnus as well, as storing passwords (securely) may not be the
>> first thing you get around to, and one may get nervous about accidently
>> saving it in this plain text file.
>
> Hi Brady.
>
> I have *never* seen this behaviour, so maybe it is some slight quirk at
> your end which is causing it? Perhaps the way that something is
> saved/configured in your gpg setup? But whatever is causing it, it is
> definitely non-standard behaviour!
>
> Sharon.

I meant I was not using gpg for now. I believe if you comment out your
password, you should be able to reproduce the prompt. 

I think I've solved it. From
http://bzr.savannah.gnu.org/lh/emacs/emacs-24/annotate/head:/lisp/gnus/auth-source.el,
I find

,----
| (let ((prompt (format "Save auth info to file %s? " file))
|       (done (not (eq auth-source-save-behavior 'ask)))
`----

Which inspires

,----
| (setq auth-source-save-behavior nil)
`----

which appears to be the best way. 

Not sure if there was a better way to browse the lisp, I was
simultaneously downloading it when I found it with Ctrl+f in the
browser. 

Also, can ensure it prompts for a gpg file instead of a plain text one,
with

,----
| (setq auth-sources '("~/.authinfo.gpg"))
`----


--
Brady


      reply	other threads:[~2014-09-30  2:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-29 20:38 Brady Trainor
2014-09-30  0:59 ` Sharon Kimble
2014-09-30  2:25   ` Brady Trainor [this message]

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=87vbo5rgir.fsf@uw.edu \
    --to=algebrat@uw.edu \
    --cc=boudiccas@skimble.plus.com \
    --cc=info-gnus-english@gnu.org \
    /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.
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 NNTP newsgroup(s).