Skip to content

Instantly share code, notes, and snippets.

@xshapira
Forked from wbotelhos/gpg-safe.sh
Last active June 9, 2024 07:48
Show Gist options
  • Save xshapira/8757c6bc0af32a9972222ca37e23cb11 to your computer and use it in GitHub Desktop.
Save xshapira/8757c6bc0af32a9972222ca37e23cb11 to your computer and use it in GitHub Desktop.
gpg: WARNING: unsafe permissions on homedir '~/.gnupg'
# Make sure that the .gnupg directory and its contents is accessibile by your user.
chown -R $(whoami) ~/.gnupg/
# If not, run this:
sudo chown -R $USER ~/.gnupg
# Then give the right permissions:
sudo chmod 700 ~/.gnupg
sudo chmod 600 ~/.gnupg/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment