Centos7系统安装软件提示“git is not in the sudoers file. This incident will be reported“

文章目录


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

猜你喜欢

转载自blog.csdn.net/LoongEmbedded/article/details/129188027
今日推荐