Brian Huber
2003-08-04 00:55:42 UTC
Please help!
I have a script that uses PGP command line 6.5.8 to PGP encrypt files and
ftp them to a remote host.
If I run the script from the command line it works perfectly, but as a chron
job the PGP encryption fails with "Cannot find the public key matching
userid" error. I've made sure my pubring.pkr is in the path , set the
PGPPATH directory in the script, and set all relevent permissions to 777 for
testing (the script, .pgp directory containing pubring.pkr).
My crontab looks like this:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/root/.pgp
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
#problem script HERE
50 * * * * root /root/scripts/./backup.sh
Any suggestions greatly appreciated. Thank You
I have a script that uses PGP command line 6.5.8 to PGP encrypt files and
ftp them to a remote host.
If I run the script from the command line it works perfectly, but as a chron
job the PGP encryption fails with "Cannot find the public key matching
userid" error. I've made sure my pubring.pkr is in the path , set the
PGPPATH directory in the script, and set all relevent permissions to 777 for
testing (the script, .pgp directory containing pubring.pkr).
My crontab looks like this:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/root/.pgp
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
#problem script HERE
50 * * * * root /root/scripts/./backup.sh
Any suggestions greatly appreciated. Thank You