-   Linux - Software (
-   -   GPG secret key problem (

nutthick 07-28-2006 04:09 AM

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


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;


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?


randyding 07-29-2006 01:09 PM

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.

All times are GMT -5. The time now is 05:14 AM.