Changing the Home Directory for PGP Command Line for each command (temporary)
search cancel

Changing the Home Directory for PGP Command Line for each command (temporary)

book

Article ID: 153398

calendar_today

Updated On:

Products

PGP Command Line PGP Encryption Suite PGP Key Management Server PGP Key Mgmt Client Access and CLI API PGP SDK Desktop Email Encryption Endpoint Encryption Encryption Management Server Drive Encryption File Share Encryption Gateway Email Encryption

Issue/Introduction


This article details how to change the home directory for PGP Command Line when using AIX, Solaris, Linux, Fedora Core, or HP-UX.

 

Resolution


Changing the Home Directory for PGP Command Line

The home directory is where PGP Command Line stores the files that it creates and uses; for example, keyring files. By default, the PGP Command Line installer creates the PGP Command Line home directory at $HOME/.pgp. If this directory does not exist, it will be created.

For example, if the value of $HOME for user "alice" is /usr/home/alice, PGP Command Line will attempt to create /usr/home/alice/.pgp.

The PGP Command Line installer will not try to create any other part of the directory listed in the $HOME variable, only .pgp.

If you want the home directory changed on a permanent basis, you will need to create the $PGP_HOME_DIR environment variable and specify the path of the desired home directory.

Example:

$PGP_HOME_DIR/user/home/dir

To change the home directory for a command

Example:

pgp --list-keys --home-dir other-pgp-files/

This changes the home directory for this command to "other-pgp-files/"

 


Additional Information