首页 > 系统服务 > 详细

Ubuntu下is not in the sudoers file 问题解决

时间:2016-01-28 17:16:41      阅读:298      评论:0      收藏:0      [点我收藏+]

在Ubuntu12.04 下,使用sudo apt-get install XXX 时,突然跳出 username is not in the sudoers file的问题


然后我一查此username的类型,果然是标准用户而不是管理员用户

解决问题至少有两种方法:


一。System Settings ->User Accounts -> 点击Unlock ->输入rootpassword -> 改动AccountType(用户类型)为Administrator(管理员) -> 重新启动



root用户下,改动/etc/sudoers的权限为640(chmod 640 /etc/sudoers) -> vim /etc/sudoers -> 找到root ALL=(ALL:ALL) ALL ->加入

username ALL=(ALL:ALL) ALL -> 改动/etc/sudoers的权限为440(chmod 440 /etc/sudoers)-> 重新启动


这时我知道的两种方法,若有其它方法,请大神留言告之。


Ubuntu下is not in the sudoers file 问题解决

原文:http://www.cnblogs.com/bhlsheji/p/5166472.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!