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
至此,问题解决。