Linux 无法使用git命令-不允许操作
当使用git命令时,我发现下面的错误Linux 无法使用git命令-不允许操作,linux,git,github,Linux,Git,Github,当使用git命令时,我发现下面的错误 git fetch error: cannot open .git/FETCH_HEAD: Permission denied 在做chmod时,我得到 sudo chmod 777 .git/FETCH_HEAD sudo: unable to change to sudoers gid: Operation not permitted sudo: setresuid() [0, 0, 0] -> [117, -1, -1]: Operatio
git fetch
error: cannot open .git/FETCH_HEAD: Permission denied
在做chmod时,我得到
sudo chmod 777 .git/FETCH_HEAD
sudo: unable to change to sudoers gid: Operation not permitted
sudo: setresuid() [0, 0, 0] -> [117, -1, -1]: Operation not permitted
请说明可能的问题?从“sudo”使用时,您的帐户必须在sudoer组中。使用“usermod”将您添加到“sudo”组。或者您可以使用from'su'并使用'root'运行chown或chmod命令 您确定需要chmod而不是chown来解决它吗?你用selinux吗?