在使用sudo执行某个命令的时候,会出现username is not in the sudoers file. This incident will be reported.错误,这个问题的原因是当前用户没有处在sudo组,先执行:
$ su -
切换到root用户,然后执行以下命令,将指定用户添加到sudo组:
$ adduser [username] sudo
重新切换回原来的用户,就可以使用sudo命令了
在使用sudo执行某个命令的时候,会出现username is not in the sudoers file. This incident will be reported.错误,这个问题的原因是当前用户没有处在sudo组,先执行:
$ su -
切换到root用户,然后执行以下命令,将指定用户添加到sudo组:
$ adduser [username] sudo
重新切换回原来的用户,就可以使用sudo命令了