View previous topic :: View next topic |
Author |
Message |
dragor n00b


Joined: 05 Jun 2003 Posts: 56
|
Posted: Fri Dec 09, 2016 10:29 pm Post subject: GnuPG always prompting for passphrase |
|
|
I've been using duplicity for automated backups from a cron script for years. Recently I updated gnupg to version 2.1.15 and it's causing problems. I've been setting the environment variable in my cron job script for the passphrase. The export is done like this:
Code: |
export PASSPHRASE=****
|
Now it seems that gnupg doesn't use this environment variable any more. It will always show a dialog to ask for a passphrase. This is fine when I run the script manually, but fails from a cronjob.
So my question is, how do I fix this? How can I automate duplicity and gnupg to run from a cronjob where it does not need any user input? Is there a new environment variable to set? An option to pass to duplicity so it can pass the passphrase to gnupg?
Thanks _________________ Sum Ergo Cogito |
|
Back to top |
|
 |
khayyam Watchman


Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sat Dec 10, 2016 10:08 am Post subject: |
|
|
dragor ...
using =app-crypt/gnupg-1.4.x in place of 2.x should resolve the issue, see this post for details.
HTH & best ... khay |
|
Back to top |
|
 |
Hu Moderator

Joined: 06 Mar 2007 Posts: 16506
|
Posted: Sat Dec 10, 2016 4:00 pm Post subject: |
|
|
If you want the key to be usable without user intervention, and you are willing to have the passphrase stored on disk, why not remove the passphrase instead? |
|
Back to top |
|
 |
|