新建账户执行sudo时会提示
XXXX is not in the sudoers file. This incident will be reported
这时你需要:
[root@www ~]# visudo
....(前面省略)....
root ALL=(ALL) ALL
找到這一行,大約在 76 行左右
XXXX ALL=(ALL) ALL
這一行是你要新增的!
....(后面省略)....
修改完重新登录就OK了!
ppt.cc/fVjECx ppt.cc/fEnHsx ppt.cc/fRZTnx ppt.cc/fSZ3cx ppt.cc/fLOuCx ppt.cc/fE9Nux ppt.cc/fL5Kyx ppt.cc/fIr1ax ppt.cc/f71Yqx tecmint.com linuxcool.com linux.die.net linux.it.net.cn ostechnix.com unix.com ubuntugeek.com runoob.com man.linuxde.net bit.ly/2EzoUDo bit.ly/2tW6eYT bit.ly/2X6vadl bit.ly/2viLpHU linuxprobe.com linuxtechi.com howtoforge.com linuxstory.org systutorials.com ghacks.net linuxopsys.com v.gd/2P9wTx v.gd/FtfpqE v.gd/eMfHsm v.gd/Ub7mqv v.gd/RReVk0 v.gd/vS3uTI v.gd/4Zxmba
XXXX is not in the sudoers file. This incident will be reported
[root@www ~]# visudo
root ALL=(ALL) ALL
XXXX ALL=(ALL) ALL