Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GnuPG always prompting for passphrase
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dragor
n00b
n00b


Joined: 05 Jun 2003
Posts: 56

PostPosted: Fri Dec 09, 2016 10:29 pm    Post subject: GnuPG always prompting for passphrase Reply with quote

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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sat Dec 10, 2016 10:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13498

PostPosted: Sat Dec 10, 2016 4:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum