【转】如何在fedora等Linux系统下解决(** is not in the sudoers file)的问题
来源:互联网 发布:unity3d怪物巡逻 编辑:程序博客网 时间:2024/05/16 11:39
用sudo命令时候,提示我:“john is not in the sudoer file ,。。。。”的问题,此时无论输入john的密码还是root的密码,是因为没有将你普通用户加入sudoer文件里面,故不能使用,上网查了下资料,解决方法如下:
参考如下:http://blog.csdn.net/andyelvis/archive/2008/11/27/3395181.aspx
解决方案:
首需要切换到root身份
$su -
(注意有- ,这和su是不同的,在用命令"su"的时候只是切换到root,但没有把root的环境变量传过去,还是当前用户的环境变量,用"su -"命令将环境变量也一起带过去,就象和root登录一样)
然后
$visudo //切记,此处没有vi和sudo之间没有空格
1、移动光标,到最后一行
2、按a,进入append模式 (插入文本模式,类似i)
3、输入
your_user_name ALL=(ALL) ALL //红色那部分是填写你自己的用户名
4、按Esc
5、输入“:w”(保存文件)
6、输入“:q”(退出)
这样就把自己加入了sudo组,可以使用sudo命令了。
- 【转】如何在fedora等Linux系统下解决(** is not in the sudoers file)的问题
- Fedora 7解决XXX is not in the sudoers file
- xx is not in the sudoers file 问题的解决
- Fedora is not in the sudoers file
- Linux配置之解决CentOS中:xx is not in the sudoers file的问题
- linux下”is not in the sudoers file“问题的解决办法
- 解决is not in the sudoers file问题
- 解决"eker is not in the sudoers file"问题
- Linux教程:XXX is not in the sudoers file解决
- is not in the sudoers file 解决
- is not in the sudoers file 解决
- is not in the sudoers file 解决
- 解决is not in the sudoers file.
- is not in the sudoers file 解决
- is not in the sudoers file 解决
- is not in the sudoers file 解决
- Linux下is not in the sudoers file解决方法
- Linux下is not in the sudoers file解决方法
- [转]程序员那些悲催的事儿
- 【转】Nand Flash与Nor Flash区别
- perl中特殊符号
- silverlight多线程学习(一)Thread
- 【转】主机windows 无线局域网 SSH 登录控制 fedora 14
- 【转】如何在fedora等Linux系统下解决(** is not in the sudoers file)的问题
- android的Dalvik虚拟机简介
- android的Dalvik虚拟机简介
- 利用NFS实现开发板挂载LINUX系统
- 主机+虚拟机+开发板互相ping通(折腾很久的问题。。终于搞定了。。)
- [转]如何恢复GNOME默认的任务栏(解决不小心点删除任务栏上面图标的方法)
- Ubuntu10.10 安装WINE 并安装QQ2010,并且解决打开空间和邮箱的问题
- 这篇文章在新浪和csdn同时发布
- SQL Server数据库的查询优化及分页算法