
72 Chapter 4
In the case of GnuPG, using setuid root makes a lot of
sense. To change your installed GnuPG program to be setuid
root, run the following:
# chown root /usr/local/bin/gpg*
# chgrp wheel /usr/local/bin/gpg*
# chmod 4755 /usr/local/bin/gpg*
If you don’t have privilege to do this on your system, talk to
your systems administrator. (And stop using GnuPG on a sys-
tem you don’t control!)
If you don’t want to install gpg as a setuid root program,
you can at least silence the warning by adding the option no-
secmem-warning
to your gpg.conf file. It doesn’t eliminate the
“memory writing to disk problem,” but at least GnuPG will stop
rubbing your ...