Using gpg from PHP system call
Anthony E. Greene
Tue Feb 26 01:39:02 2002
-----BEGIN PGP SIGNED MESSAGE-----
On Mon, 25 Feb 2002, Andre Flitsch wrote:
>You will be able to execute gnupg via telnet as you are authenticated as
>part of a group with permission to execute gnupg. When executing from
>the web server the script runs as as nobody or Apache - a group with no
>permissions. You have to set the permissions of the files in the gnupg
>home directory (/path/to/home/.gnupg) to be executable by the world. I
>had the same problem with a php script. When i chmod'd the files to 777
>gnupg was able to execute and create the encoded file.
Apache and nobody both have user and group settings on my Red Hat boxes.
You can set the directory and file permissions for the user and group
"nobody" and GPG should work fine.
Anthony E. Greene <firstname.lastname@example.org> <http://www.pobox.com/~agreene/>
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D
Chat: AOL/Yahoo: TonyG05
Linux. The choice of a GNU generation <http://www.linux.org/>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Anthony E. Greene <email@example.com> 0x6C94239D
-----END PGP SIGNATURE-----