aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2026-08-21 12:28:34 +0200
committerWerner Koch <[email protected]>2026-08-21 12:29:16 +0200
commit56eb3148c7b88eb1c0804141b58cb54b9007f48d (patch)
tree214231bd3acc826669cddbc4c6580802b749dd0a /README
parentgpg: Emit status line for failed write. (diff)
downloadgnupg-56eb3148c7b88eb1c0804141b58cb54b9007f48d.tar.gz
gnupg-56eb3148c7b88eb1c0804141b58cb54b9007f48d.zip
gpgconf: Print a warning on Windows on insufficent /etc permissions.
* README (Securing the global config files on Windows): New. * tools/gpgconf.c [W32]: Include aclapi.h. (enum cmd_and_opt_values): Add oDebug. (opts): Add option --debug. (debug_flags): New. (main): Parse debug flags. (w32_get_file_integrity_level) [W32]: New. (show_configs) [W32]: Check permissions of the gloab sysconfdir * tools/gpgconf.h (opt): Add field 'debug'. (DBG_W32_API): New. -- We suggest the use of the intergrity level system for securing the etc hierachy because this is easier to check and understand than dedicated permissions. Thus depending on the implemented strategy the warning may still be shown despite that the etc directory is actually secured. This patch was triggred by Reported-by: [email protected] who complained about this known behaviour. Note that the MSI based installers are not affected because they install configuration files and thus a regular user can't change them. Gpg4win does not do that because it has been assumed that Gpg4win is used on the common single user machines. For large installations admins know about such Windows deficits and have likely setup proper permission.
Diffstat (limited to 'README')
-rw-r--r--README35
1 files changed, 22 insertions, 13 deletions
diff --git a/README b/README
index 3005474fd..705f8a09b 100644
--- a/README
+++ b/README
@@ -159,6 +159,23 @@
* RECOMMENDATIONS
+** Securing the global config files on Windows
+
+ The Windows version of GnuPG expects optional global config files
+ in the directory "%ALLUSERSPROFILE%\GNU\etc\gnupg". However,
+ current Windows versions allow by default all users to write to
+ this directory. Thus on machine shared with several users it is
+ highly suggested to secure the entire "etc" directory tree by
+ disallowing regular users to create files or diretories.
+ Installers for GnuPG on Windows might have done that already but it
+ is suggested to check that this has been done. The command
+ "gpgconf -X" will check for proper permissions and emit a warning
+ if this has not been done. Fixing the permissions is easy from
+ an Administrators terminal:
+
+ icacls "%ALLUSERSPROFILE%\GNU\etc" /setintegritylevel h
+
+
** Key database daemon
Since version 2.3.0 it is possible to store the keys in an SQLite
@@ -313,20 +330,12 @@
fixes. The mailing lists are watched by the authors and we try to
answer questions as time allows us.
- Commercial grade support for GnuPG is available; for a listing of
- offers see https://gnupg.org/service.html . Maintaining and
- improving GnuPG requires a lot of time. Since 2001, g10 Code GmbH,
- a German company owned and headed by GnuPG's principal author Werner
- Koch, is bearing the majority of these costs.
+ Since 2001 maintenance and development of GnuPG is done by g10 Code
+ GmbH, a German company majoritarian owned and headed by GnuPG's
+ principal author Werner Koch. Revenues from support contracts
+ allows them to work full-time on GnuPG and related software like
+ Libgcrypt, GPGME, Kleopatra, Okular, and Gpg4win.
-# This file is Free Software; as a special exception the authors gives
-# unlimited permission to copy and/or distribute it, with or without
-# modifications, as long as this notice is preserved. For conditions
-# of the whole package, please see the file COPYING. This file is
-# distributed in the hope that it will be useful, but WITHOUT ANY
-# WARRANTY, to the extent permitted by law; without even the implied
-# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-#
# Local Variables:
# mode:org
# End: