Forked from oseme-techguy/Correct_GnuPG_Permission.sh
Created
April 22, 2022 08:11
-
-
Save Jacke/b3bfaa6ee4922f6b2a5908cb9968ee8b to your computer and use it in GitHub Desktop.
Revisions
-
oseme-techguy renamed this gist
Apr 9, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
oseme-techguy created this gist
Apr 9, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ #!/usr/bin/env bash # To fix the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error # Make sure that the .gnupg directory and its contents is accessibile by your user. chown -R $(whoami) ~/.gnupg/ # Also correct the permissions and access rights on the directory chmod 600 ~/.gnupg/* chmod 700 ~/.gnupg