文章目录
Centos7系统安装软件的时候提示“git is not in the sudoers file. This incident will be reported.”
(1) 先切换到root账号
su root
(2) 在/etc/sudoers文件添加git账号为sudoers用户
vim /etc/sudoers
##Allow root to run any commands anywhere
root ALL=(ALL) ALL
git ALL=(ALL) ALL
在Centos7系统中,用户遇到安装git时提示‘gitisnotinthesudoersfile.Thisincidentwillbereported.’。解决方法是切换到root用户,然后使用vim编辑/etc/sudoers文件,将git账号添加为sudoers用户,赋予全部命令执行权限。
2303

被折叠的 条评论
为什么被折叠?



