27
10
I don't want to just chmod and run until I get the right answer, nor do I want to run GnuPG as root. The easy fix would be to just set it so that only my user can read it, but I don't think that's the best way.
I get the following error when I attempt to use gpg:
gpg: WARNING: unsafe enclosing directory permissions on configuration file `/home/nb/.gnupg/gpg.conf'
gpg: external program calls are disabled due to unsafe options file permissions
gpg: keyserver communications error: general error
gpg: keyserver receive failed: general error
GnuPG's ~/.gnupg/
current status:
% stat .gnupg
File: ‘.gnupg’
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 1bh/27d Inode: 20578751 Links: 3
Access: (0775/drwxrwxr-x) Uid: ( 1000/ nb) Gid: ( 1000/ XXXX)
Access: 2015-08-09 18:14:45.937760752 -0700
Modify: 2015-08-05 20:54:32.860883569 -0700
Change: 2015-08-05 20:54:32.860883569 -0700
Birth: -
The answer at the following link advises 600 permissions for the ~/gnupg/gpg.conf
file, but does the enclosing folder require those permissions, too?
1// , Do you know if the makers of GnuPG document these specific permission levels? If they do document them, where could I find this? – Nathan Basanese – 2015-08-10T18:18:53.437
1They do! You posted the error message ;) – Alex Stragies – 2015-08-10T19:24:35.127
1// , Yeah, but the error message doesn't say what the permissions should be. Do they publish that anywhere? – Nathan Basanese – 2017-03-30T22:52:02.883
1// , Also, thanks for adding more of an explanation for those of us who aren't as familiar with the permission numbering scheme. – Nathan Basanese – 2017-03-30T22:54:19.157