executing from the web
Andre Flitsch
andre@pixel-works.co.uk
Tue Feb 12 10:32:07 2002
Hi
The problem was in fact that the homedir (and the files in it) needed to be
writeable by the world. As soon as i made that change, then the program
worked.
thanks everyone for your help/suggestions.
Andre
-- >>-----Original Message-----
-- >>From: bill@lightlink.com [mailto:bill@lightlink.com]On Behalf Of Bill
-- >>Carini
-- >>Sent: 12 February 2002 05:16
-- >>To: andre@pixel-works.co.uk; gnupg-users@gnupg.org
-- >>Subject: executing from the web
-- >>
-- >>
-- >>I'm certainly no expert, but I just got gpg working from the web.
-- >>
-- >>When the web server runs gpg, it runs it under its username, which is
-- >>'nobody' on many
-- >>servers; on mine it's 'www-data'. Question: does that
-- >>username, whatever
-- >>it may be,
-- >>have permission to write to /home/kinetec/.gnupg ? gpg needs to write
-- >>to the directory
-- >>containing the public key, for some reason.
-- >>
-- >>What does the error message say? It is stored in the file named after
-- >>'2>'
-- >>
-- >>Here's the command that finally worked from my perl script:
-- >>
-- >>open (GPG, "|gpg --homedir /home/www-data/.gnupg --batch --always-trust
-- >>--no-secmem-warning --no-tty -a -r bill\@mydomain.com --encrypt -o
-- >>/writeable/directory/gpgoutput");
-- >>
-- >>Hope this helps,
-- >>
-- >>Bill Carini
-- >>
-- >>
-- >>