debian中xxx is not in the sudoers file解决方法
来源:互联网 发布:sql中绝对值函数 编辑:程序博客网 时间:2024/05/22 05:08
用sudo时提示"xxx is not in the sudoers file. This incident will be reported.其中XXX是你的用户名,也就是你的用户名没有权限使用sudo,我们只要修改一下/etc/sudoers文件就行了。下面是修改方法:
1)进入超级用户模式。也就是输入"su -",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式。(当然,你也可以直接用root用)
2)添加文件的写权限。也就是输入命令"chmod u+w /etc/sudoers"。
3)编辑/etc/sudoers文件。也就是输入命令"vi /etc/sudoers",输入"i"进入编辑模式,找到这一 行:"root ALL=(ALL) ALL"在起下面添加"xxx ALL=(ALL) ALL"(这里的xxx是你的用户名),然后保存(就是先按一 下Esc键,然后输入":wq")退出。
4)撤销文件的写权限。也就是输入命令"chmod u-w /etc/sudoers"。
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/kangtianwang/archive/2011/03/11/6240167.aspx
- debian中xxx is not in the sudoers file解决方法
- debian中xxx is not in the sudoers file解决方法
- debian中xxx is not in the sudoers file解决方法
- Linux中“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解决方法 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解决方法
- 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解决方法
- xxx is not in the sudoers file 解决方法
- xxx is not in the sudoers file解决方法
- 9.11找出the的个数
- 让IIS支持未知文件扩展名下载
- 鼠标模拟combobox改变选项
- 树的构建及相关遍历
- 平台开发问题
- debian中xxx is not in the sudoers file解决方法
- 数据库 定位指定的服务器/实例时出错 Error 26错误
- putty使用方法,中文教程
- powerbuilder把excel文件中数据导入到数据窗口中
- CentOS+QT+gdb
- 数据库连接字符串研究.
- asp.net第三方控件消息控件popupwin.dll
- 一个不错的博客地址
- 如何给windows窗体程序打包成一个安装包