xxx is not in the sudoers file解决方法
来源:互联网 发布:s7300模拟量输出编程 编辑:程序博客网 时间:2024/05/22 06:33
1.下面是修改方法:
1)进入超级用户模式。也就是输入"su -",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式。(当然,你也可以直接用root用)
2)添加文件的写权限。也就是输入命令"chmod u+w /etc/sudoers"。
3)编辑/etc/sudoers文件。也就是输入命令"vim /etc/sudoers",输入"i"进入编辑模式,找到这一 行:"root ALL=(ALL) ALL"在起下面添加"xxx ALL=(ALL) ALL"(这里的xxx是你的用户名),然后保存(就是先按一 下Esc键,然后输入":wq")退出。
4)撤销文件的写权限。也就是输入命令"chmod u-w /etc/sudoers"。
2.另一种修改sudoers的方法
sudo都提供了一个编辑该文件的命令:visudo来对该文件进行修改。强烈推荐使用该命令修改 sudoers,因为它会帮你校验文件配置是否正确,如果不正确,在保存退出时就会提示你哪段配置出错的。
(改命令需超级用户:su -) visodo /bin/sudoers
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法 SUDO
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- debian中xxx is not in the sudoers file解决方法
- debian中xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- debian中xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file 解决方法
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- Oracle DSI(Data Server Internals) 下载说明
- 在MyEclipse中用JDBC连接Sql Server 2005
- [转]使用 Twisted Matrix 框架来进行网络编程
- DLL
- android service深入
- xxx is not in the sudoers file解决方法
- 引用 Enterprise Library 5.0 时的一个警告和运行时错误及解决办法
- linux库文件编写入门
- POP3和IMAP的区别
- [C++]使用FS寄存器判断进程是否被调试
- 关于context的lookup方法
- error:include/asm is a directory but symlink was expected
- IE与FF区别
- 堕落的时候看看——清华大学老师的一席话