小编tec*_*ous的帖子

创建一个破坏现有权限的新用户

我有一台运行 Ubuntu 的机器,~/.ssh/config其中包含具有以下权限的 SSH 配置文件(创建新文件时的默认设置)

-rw-rw-r--  1 dev dev   75 Oct 26 20:13 config
Run Code Online (Sandbox Code Playgroud)

创建与现有用户 (dev) 具有相同主要组 (dev) 的新用户 (test) 后,以 dev 身份登录时,我无法再执行 git clone。

dev@vm:~$ git clone ...
Cloning into ...
Bad owner or permissions on /home/dev/.ssh/config
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)

谷歌搜索似乎表明我可以通过运行来解决 ssh 问题chmod 600 ~/.ssh/config,但为什么这会成为一个问题?我怎样才能系统地解决这个问题,因为我认为这也会影响其他文件?

谢谢!

users ssh chmod git

7
推荐指数
2
解决办法
789
查看次数

标签 统计

chmod ×1

git ×1

ssh ×1

users ×1