Needless passphrase prompt

Todd Hesla hesla at aem.umn.edu
Fri Nov 30 00:44:19 CET 2007


This is a re-posting (in modified form) of a recent posting of mine under
another subject heading ("Newbie question") which has not yet received any
response.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I am running GnuPG 2.0.3 on Fedora 7.  I am using gpg-agent, and find that
even after gpg-agent has cached my passphrase, gpg2 (needlessly) issues a
passphrase prompt to the terminal when it needs to access my secret key.
(The "pinentry" dialog window, however, does not appear.)

Is there any way to eliminate this needless passphrase prompt?  I have tried
redirecting both standard output and standard error to /dev/null, but to no
avail.

In the following example, I first encrypt (to myself) and then decrypt
a test file--after gpg-agent has already cached my passphrase.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
$$ ll test*
-rw-rw-r-- 1 todd todd   6 2007-11-20 15:14 test
$$ cat test
Test.
$$ gpg2 -e test
$$ ll test*
-rw-rw-r-- 1 todd todd   6 2007-11-20 15:14 test
-rw-rw-r-- 1 todd todd 599 2007-11-20 16:26 test.gpg
$$ gpg2 -d test.gpg

You need a passphrase to unlock the secret key for
user: "Todd Hesla (General) <hesla at aem.umn.edu>"
2048-bit ELG key, ID 1C0B50A0, created 2007-11-20 (main key ID 65A3115F)

Test.
$$ gpg2 -d test.gpg &>/dev/null

You need a passphrase to unlock the secret key for
user: "Todd Hesla (General) <hesla at aem.umn.edu>"
2048-bit ELG key, ID 1C0B50A0, created 2007-11-20 (main key ID 65A3115F)

$$ 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Thanks for any help you can give me.

-- 
Todd Hesla
Department of Aerospace Engineering and Mechanics
University of Minnesota
Minneapolis, Minnesota
USA



More information about the Gnupg-users mailing list