gpg on cron task
enediel gonzalez
enediel at hotmail.com
Sat Feb 4 16:34:06 CET 2006
Thanks Samuel for the answer
as you can see on the line I execute, I include the full paths necessary for
the execution
regarding permissions, this task is a root's task, so, the referenced key ID
in included within the trusted chain for root.
$str_execute = "cd /tmp/backup && /bin/echo apassword | /usr/bin/gpg -se
--passphrase-fd 0 -r enediel at hotmail.com /
tmp/backup/$filename";
exec($str_execute);
Regards
Enediel
Linux user 300141 Debian GNU/Linux
>From: samuel at Update.UU.SE (Samuel ]slund)
>Reply-To: GnuPG Users <Gnupg-users at gnupg.org>
>To: GnuPG Users <Gnupg-users at gnupg.org>
>Subject: Re: gpg on cron task
>Date: Sat, 4 Feb 2006 09:19:46 +0100
>
>On Sat, Feb 04, 2006 at 02:23:47AM +0000, enediel gonzalez wrote:
> > Hello:
> > I use debian sarge and I need to encrypt and decrypt automatically
>backup
> > files using gpg
> >
><<<< Snip >>>>
> >
> > When I execute the script manually as root, I obtain the encrypted file,
> > but if I put the same script as a cron's task, the whole script works
> > perfectly except the encryption process, and I not receive any error.
>
>Have you checked if the script has access to the key?
>(E.g. Permission or path problems.)
>
>HTH
>//Samuel
>
>
>_______________________________________________
>Gnupg-users mailing list
>Gnupg-users at gnupg.org
>http://lists.gnupg.org/mailman/listinfo/gnupg-users
More information about the Gnupg-users
mailing list