一、问题描述
Ubuntu中使用sudo执行命令提示如下
ubuntu is not in the sudoers file. This incident will be reported.
二、问题分析
普通用户没有超级用户权限
三、解决方案
1、切换到root用户
su
2、修改用户的超级用户权限
visudo
在最后追加以下内容
ubuntu ALL=(ALL:ALL) NOPASSWD: ALL
Ubuntu中使用sudo执行命令提示如下
ubuntu is not in the sudoers file. This incident will be reported.
普通用户没有超级用户权限
su
visudo
在最后追加以下内容
ubuntu ALL=(ALL:ALL) NOPASSWD: ALL