首页 > 代码库 > sunzl is not in the sudoers file.This incident will be reported
sunzl is not in the sudoers file.This incident will be reported
Description:
[sunzl@localhost nuc900bsp$] ./install.sh
sorry!you are not the root !!
[sunzl@localhost nuc900bsp$] sudo ./install.sh
password:
sunzl is not in the sudoers file.This incident will be reported
fixed:
[sunzl@localhost nuc900bsp$] su
password:
[sunzl@localhost nuc900bsp$]chmod u+w /etc/sudoers
[sunzl@localhost nuc900bsp$] vi /etc/sudoers
找到这一行:"root ALL=(ALL) ALL",在该行下面另起一行添加"sunzl ALL=(ALL) ALL",保存,退出。
[sunzl@localhost nuc900bsp$]chmod u-w /etc/sudoers
至此,问题解决。
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。