LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-28-2006, 04:09 AM   #1
nutthick
Member
 
Registered: Jun 2004
Distribution: Slack
Posts: 214

Rep: Reputation: 30
GPG secret key problem


I have a GPG encrypted file, that I can decypher without any problems over SSH using the following command line;

Code:
echo "password" | gpg --no-tty --passphrase-fd 0 -o /tmp/update/update.tar /tmp/update.pgp
However, when I put the script into a daemon I get the following error;

Code:
gpg: decryption failed: secret key not available
Now the key must be present, else I couldn't decrypt over SSH. The daemon is running as root, so it must have access to the keychain. Does anyone have any idea what is causing this?

Thanks
 
Old 07-29-2006, 01:09 PM   #2
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
I would guess your gpg key is in your home directory, is this directory a NFS mount? Because if it is then root may not have read access to it because of NFS's "root squash".
Probably need some more details about your setup to troubleshoot it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with gpg key kpachopoulos *BSD 5 04-17-2007 01:32 PM
yum and gpg key problem Richlw Fedora 1 06-30-2005 12:01 AM
GPG Key problem satimis Fedora 2 04-13-2005 03:22 AM
Problem importing Mandrake Cooker public GPG key hazza Mandriva 2 07-26-2004 05:38 AM
GPG Data, Secret Key but no Public Key? Aeiri Linux - Software 5 07-20-2004 06:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration