Enigmail wants $USER
to have the write permission on ~/.gnupg/
directory but the gpg
tool then complains about insecure permissions :
$ ls -ld ~/.gnupg
drwxrwx--- 1 root xyzt 248 févr. 25 16:34 /home/xyzt/.gnupg/
$ sudo gpg --list-keys >/dev/null
gpg: WARNING: unsafe enclosing directory permissions on configuration file `/home/xyzt/.gnupg/gpg.conf'
and if I switch the group and user owners, I get another warning :
$ sudo chown -R $USER:root ~/.gnupg
$ ls -ld ~/.gnupg
drwxrwx--- 1 xyzt root 248 févr. 25 16:38 /home/xyzt/.gnupg/
$ sudo gpg --list-keys >/dev/null
gpg: WARNING: unsafe ownership on configuration file `/home/xyzt/.gnupg/gpg.conf'
What are the owner and permissions on ~/.gnupg/
and ~/.gnupg/gpg.conf
to satisty both GnuPG and Enigmail ?