我不想只是chmod并运行,直到得到正确的答案,也不希望以root身份运行GnuPG。简单的解决方法是将其设置为只有我的用户才能阅读,但我认为这不是最好的方法。
尝试使用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的~/.gnupg/
当前状态:
% 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: -
以下链接的答案建议为该~/gnupg/gpg.conf
文件提供600个权限,但是封闭文件夹也需要这些权限吗?
/ubuntu/330755/unsafe-permissions-on-configuration-file-home-david-gnupg-gpg-conf-what-doe