If GnuPG is installed on a system with existing user accounts, it is sometimes required to populate the GnuPG home directory with existing files. Especially a 'trustlist.txt' and a keybox with some initial certificates are often desired. This scripts help to do this by copying all files from '/etc/skel/.gnupg' to the home directories of the accounts given on the command line. It takes care not to overwrite existing GnuPG home directories.
Create .gnupg home directories
test
test
Creates GnuPG home directories for users (Red Hat-based systems).
sudo addgnupghome user1
This command adds a home directory for GPG (GNU Privacy Guard).
addgnupghome /path/to/directory
Creates a new GnuPG home directory for a user.
sudo addgnupghome username