[CentOS] gpg command works fine from login shell, not from cron script

Spiro Harvey spiro at knossos.net.nz
Mon Oct 19 20:41:05 UTC 2009


Sean Carolan <scarolan at gmail.com> wrote:
> Why does it say "secret key not available"?  The output of gpg -K
> shows that the key is in fact available, and this is further confirmed
> when I run the script manually and the files are decrypted just fine.

Is the cron job running as a different user? eg; are you running gpg as
a non-privileged user and the cronjob as root?

-- 
Spiro Harvey                  Knossos Networks Ltd
021-295-1923                  www.knossos.net.nz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.centos.org/pipermail/centos/attachments/20091020/e6dfc8c5/attachment.bin 


More information about the CentOS mailing list