AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题

问题[ownership](computer)

Martin Hope
Estatistics
Asked: 2021-07-11 00:29:56 +0800 CST

gpg:警告:homedir /home/USER/.gnupg 上的所有权不安全

  • 7

我收到关于不安全所有权的警告~/.gnupg:

curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg
  gpg: WARNING: unsafe ownership on homedir '/home/USER/.gnupg'
  • 我尝试了以下方法,但没有任何效果:
    chown -R $(USER) ~/.gnupg/
    
    find ~/.gnupg -type f -exec chmod 600 {} \;
    find ~/.gnupg -type d -exec chmod 700 {} \;
    
    sudo gpgconf --kill dirmngr
    sudo chown -R USER:USER /home/USER/.gnupg
    chmod 700 /home/USER/.gnupg
    chmod 600 ~/.gnupg/*
    
  • ls -al /home/elias/.gnupg
    
      drwx------  4 USER USER  4096 Jul  1 19:33 .
      drwxr-xr-x 96 USER USER 20480 Jul 10 11:19 ..
      drw-------  2 USER USER  4096 Feb 13  2019 crls.d
      drw-------  2 USER USER  4096 Aug 13  2018 private-keys-v1.d
      -rw-------  1 USER USER  2305 Feb 13  2019 pubring.kbx
      -rw-------  1 USER USER   584 Feb 13  2019 pubring.kbx~
      -rw-------  1 USER USER  1200 Aug 13  2018 trustdb.gpg
    


可能相关:

error:45 http://ppa.launchpad.net/hugin/hugin-builds/ubuntu bionic Release    
  404  Not Found [IP: 91.189.95.85 80]

Hit:32 https://www.icesi.edu.co/CRAN/bin/linux/ubuntu xenial-cran35/ InRelease

error:25 https://repo.skype.com/deb stable InRelease
  The following signatures were not valid: EXPKEYSIG 1F3045A5DF7587C3 Skype Linux Client Repository <[email protected]>

error:30 http://apt.insynchq.com/ubuntu bionic InRelease
  The following signatures were not valid: EXPKEYSIG A684470CACCAF35C Insynchq Inc <[email protected]>

E: The repository 'https://packages.sury.org/php bionic Release' does not have a Release file.
   N: Updating from such a repository cant be done securely, and is therefore disabled by default.
   N: See apt-secure(8) manpage for repository creation and user configuration details.

E: The repository 'http://ppa.launchpad.net/hugin/hugin-builds/ubuntu bionic Release' does not have a Release file.
   N: Updating from such a repository cant be done securely, and is therefore disabled by default.
   N: See apt-secure(8) manpage for repository creation and user configuration details.

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used.
   GPG error: https://repo.skype.com/deb stable InRelease: The following signatures were not valid: EXPKEYSIG 1F3045A5DF7587C3 Skype Linux Client Repository <[email protected]>

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used.
   GPG error: http://apt.insynchq.com/ubuntu bionic InRelease: The following signatures were not valid: EXPKEYSIG A684470CACCAF35C Insynchq Inc <[email protected]>

被问到的额外信息:

ls -al /usr/share/keyrings/

结果:

drwxr-xr-x   2 root root  4096 Jul 10 11:13 .
drwxr-xr-x 621 root root 20480 Jul 10 13:50 ..
-rw-r--r--   1 root root  1795 Jul 10 11:52 githubcli-archive-keyring.gpg
-rw-r--r--   1 root root  2274 May 11 13:19 ubuntu-advantage-cis.gpg
-rw-r--r--   1 root root  2236 May 11 13:19 ubuntu-advantage-esm-apps.gpg
-rw-r--r--   1 root root  2264 May 11 13:19 ubuntu-advantage-esm-infra-trusty.gpg
-rw-r--r--   1 root root  2275 May 11 13:19 ubuntu-advantage-fips.gpg
-rw-r--r--   1 root root  7399 Sep 18  2018 ubuntu-archive-keyring.gpg
-rw-r--r--   1 root root  6713 Oct 27  2016 ubuntu-archive-removed-keys.gpg
-rw-r--r--   1 root root  4097 Feb  6  2018 ubuntu-cloudimage-keyring.gpg
-rw-r--r--   1 root root     0 Jan 17  2018 ubuntu-cloudimage-removed-keys.gpg
-rw-r--r--   1 root root  1227 May 27  2010 ubuntu-master-keyring.gpg

额外信息2:

sudo env | grep '^HOME='

结果:

HOME=/home/elias
gnupg ownership
  • 1 个回答
  • 3397 Views
Martin Hope
user1140873
Asked: 2020-02-21 15:20:47 +0800 CST

从 Root 取得所有权

  • 6

全新安装并成为 Linux 世界的新手,我使用 gparted 创建了一个新分区 ext4 来放置 Timeshift 文件,如何在 Linux Mnt 19.3 下从 root 取回所有权?

partitioning ownership
  • 1 个回答
  • 219 Views
Martin Hope
moth
Asked: 2020-01-17 12:03:52 +0800 CST

rsync 的不同行为

  • 6

根据我的理解,rsync没有-oand-g选项意味着在不更改目标所有者和组的情况下进行复制。但是,我发现了一种rsync我无法解释的非常奇怪的行为。一个例子总是比冗长的解释好:

设file1和file2为 2 个文件,其组和所有者分别为 user1:user1 和 user2:user2。

运行以下指令(在 2 行中)user1是一个 sudoer:

touch file1

然后

touch file2 && sudo chown user2:user2 file2 && rsync file1 file2 && ls -l

结果是:

-rw-r--r-- 1 user1 user1 0 Jan 16 19:51 file1
-rw-r--r-- 1 user1 user1 0 Jan 16 19:53 file2

在运行以下指令时,仍然使用user1,一次(1 行):

touch file1 && touch file2 && sudo chown user2:user2 file2 && rsync file1 file2 && ls -l

结果是:

-rw-r--r-- 1 user1 user1 0 Jan 16 19:51 file1
-rw-r--r-- 1 user2 user2 0 Jan 16 19:53 file2

总而言之,在第一种情况下,所有权file2已被修改,而在第二种情况下,它还没有被修改,它仍然是 user2:user2,这是预期的行为(除非我误解了)rsync。

也许我错过了什么,但我找不到什么。请问您有什么解释吗?

先感谢您。

rsync ownership
  • 2 个回答
  • 39 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve