User not in the sudoers file. This incident will be reported
2012-12-09 23:40
615 查看
在Ubuntu 中使用sudo 时,会发现提示 User not in the sudoers file. This incident will be reported
这样的错误,你可以修改/etc/sudoers下面的这个文件,把当前用户添加到里面,这是一种修改 办法。
还有一个办法是使用下面的命令:
id user_name
查看以下当前用户所属组有哪些,看下其中是否有adm或者sudo 这两个组,若没有属于这两个组请使用下面的命令添加当前用户到这两个组:
1,先切换到root帐号下
2.然后执行下面的命令
3,然后重新启动一下系统。
打开terminal进,就重新使用sudo 这个命令时就不会出现这样的错误了。
还有一个办法是使用下面的命令:
id user_name
查看以下当前用户所属组有哪些,看下其中是否有adm或者sudo 这两个组,若没有属于这两个组请使用下面的命令添加当前用户到这两个组:
1,先切换到root帐号下
su -
2.然后执行下面的命令
usermod -G adm,cdrom,sudo,dip,plugdev,lpadmin,sambashare user_name
3,然后重新启动一下系统。
打开terminal进,就重新使用sudo 这个命令时就不会出现这样的错误了。
相关文章推荐
- User is not in the sudoers file. This incident will be reported
- Username is not in the sudoers file. This incident will be reported
- user is not in the sudoers file.This incident will be reported
- #user is not in the sudoers file . This incident will be reported
- sparkuser is not in the sudoers file. This incident will be reported.
- user is not in the sudoers file. This incident will be reported 解决方法
- Ubuntu 中出现username is not in the sudoers file. This incident will be reported的错误
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- xxx is not in the sudoers file. This incident will be reported的解决方法
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- Linux 'XXXXXX' "is not in the sudoers file. This incident will be reported" 解决方法
- xxx is not in the sudoers file. This incident will be reported解决方法
- is not in the sudoers file.This incident will be reported
- is not in the sudoers file. This incident will be reported
- xxx is not in the sudoers file. This incident will be reported的解决方...
- xxx is not in the sudoers file.This incident will be reported.的解决方法
- centos 修改xxx is not in the sudoers file. This incident will be reported
- xxx is not in the sudoers file. This incident will be reported的解决方法
- xxx not in the sudoers file.This incident will be reported