summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2017-03-14 12:34:23 +0100
committerWerner Koch <wk@gnupg.org>2017-03-14 12:34:23 +0100
commit40b7911130a969677d6f0b5796236a29f10a9e69 (patch)
tree3287fb49d4988ae872eb6735317eebf26011703b /README
parentgpg: Flush stdout before printing stats with --check-sigs. (diff)
downloadgnupg2-40b7911130a969677d6f0b5796236a29f10a9e69.tar.xz
gnupg2-40b7911130a969677d6f0b5796236a29f10a9e69.zip
doc: Explain in README how to create /run/user directories.
-- Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'README')
-rw-r--r--README24
1 files changed, 24 insertions, 0 deletions
diff --git a/README b/README
index 4cb0b6c11..0ff9099d9 100644
--- a/README
+++ b/README
@@ -148,6 +148,30 @@
use of the GnuPG directories. Dirmngr is started by gpg or gpgsm as
needed. There is no more need to install a separate Dirmngr package.
+* RECOMMENDATIONS
+
+** Socket directory
+
+ GnuPG uses Unix domain sockets to connect its components (on Windows
+ an emulation of these sockets is used). Depending on the type of
+ the file system, it is sometimes not possible to use the GnuPG home
+ directory (i.e. ~/.gnupg) as the location for the sockets. To solve
+ this problem GnuPG prefers the use of a per-user directory below the
+ the /run (or /var/run) hierarchy for the the sockets. It is thus
+ suggested to create per-user directories on system or session
+ startup. For example the following snippet can be used in
+ /etc/rc.local to create these directories:
+
+ [ ! -d /run/user ] && mkdir /run/user
+ awk -F: </etc/passwd '$3 >= 1000 && $3 < 65000 {print $3}' \
+ | ( while read uid rest; do
+ if [ ! -d "/run/user/$uid" ]; then
+ mkdir /run/user/$uid
+ chown $uid /run/user/$uid
+ chmod 700 /run/user/$uid
+ fi
+ done )
+
* DOCUMENTATION