Last updated 1 year ago
When you copy gpg configuration form other machine, you might get warning as follow
To fix this, make sure that The .gnupg directory has the correct permission.
.gnupg
And files & folder inside has the correct permisson
gpg: WARNING: unsafe permissions on homedir '/home/user/.gnupg'
chown -R $(whoami) ~/.gnupg/
find ~/.gnupg -type f -exec chmod 600 {} \; # Set 600 for files find ~/.gnupg -type d -exec chmod 700 {} \; # Set 700 for directories