LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   GPG secret key problem (https://www.linuxquestions.org/questions/linux-software-2/gpg-secret-key-problem-468485/)

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;

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

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 04:20 PM.