Hi, I have configured apache to run as root(Both User and Group). Now, I have a cgi perl script which calls pgps to sign a message. It works fine if I run it locally, but when I run it from the web, I got the following error from pgps:
Cannot open configuration file pgp.cfg Cannot open secret keyring "secring.skr" Cannot open public keyring "pubring.pkr" Cannot find a private key for signing: [EMAIL PROTECTED] This is how I called pgps from the script: $output = `/usr/bin/pgps -at -f mutt.$$ -o mutt.header.out.$$ -z \"my keys\" -u [EMAIL PROTECTED] 2>&1`; I have tried to use SetEnv PGPPATH /root/.pgp with no luck. Do I have to use suEXEC from apache? I thought I configured apache to run as root for both User and Group, then all the cgi scripts will be run as root as well... Thanks for the help... Shao. -- ____________________________________________________________________________ Shao Zhang - Running Debian 2.1 ___ _ _____ Department of Communications / __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _____________________________________________________________________________