System-wide gnupg.conf?
Werner Koch
wk at gnupg.org
Thu Aug 10 11:01:59 CEST 2017
On Wed, 9 Aug 2017 20:07, aheinlein at gmx.com said:
> after reading today's announcement of GNuPG 2.1.23, I had the idea of
> having a system-wide /etc/gnupg.conf, to disable the new
> auto-key-retrieve etc. User's gnupg.conf should still be used and
> override the same options in the system-wide conf.
What you can do is to use the applygnupgddefaults script to modify all
user's conf files. However, it is easier to create a profile and apply
its content:
Create this file:
--8<---------------cut here---------------start------------->8---
[gpg]
no-auto-key-retrieve
auto-key-locate local
--8<---------------cut here---------------end--------------->8---
and use
gpgconf --apply-profile THATFILE
to update the current user's gpg.conf. Or use this one liner:
printf "[gpg]\nno-auto-key-retrieve\nauto-key-locate local\n" \
| gpgconf --apply-profile
Shalom-Salam,
Werner
--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: </pipermail/attachments/20170810/c947c614/attachment-0001.sig>
More information about the Gnupg-users
mailing list