This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
ncsa-mosaic/auth/pgp-dec

21 lines
520 B
Bash
Executable File

#!/bin/sh
# Set this to the password to your secret key
PGPPASS=mypassword
# Set this to the location of your keyrings and config files
PGPPATH=/usr6/rob/.pgp
# Set this to your user name, the name on your secret key
PGPUSER=robm@ncsa.uiuc.edu
# Set this to the full path to the PGP binary on your system
PGPBIN=/usr/local/bin/pgp
# You shouldn't need to edit anything after this line
export PGPPASS
export PGPPATH
# Make sure PGP doesn't try to make temp files in /
cd /tmp
exec $PGPBIN -f -u $PGPUSER 2>/dev/null