首页 > 其他分享 >解决警告 gpg WARNING unsafe permissions on homedir

解决警告 gpg WARNING unsafe permissions on homedir

时间:2022-12-19 11:12:00浏览次数:47  
标签:homedir gpg unsafe chmod WARNING gnupg

这里假定我们的 GPG 文件夹位置为 ~/.gnupg,只需运行以下几条命令即可解决 "gpg WARNING unsafe permissions on homedir" 告警信息:

  1. chown -R $(whoami) ~/.gnupg
  2. chmod 700 ~/.gnupg
  3. chmod 600 ~/.gnupg/*
  4. chmod 700 ~/.gnupg/*.d

image

标签:homedir,gpg,unsafe,chmod,WARNING,gnupg
From: https://www.cnblogs.com/astrofeyx/p/resolve-gpg-warning-unsafe-permissions-on-homedir.html

相关文章