centos下 xxx is not in the soduers file 的解决方法!
来源:互联网 发布:私人摄像头直播软件 编辑:程序博客网 时间:2024/05/21 09:46
用sudo时提示"xxx is not in the sudoers file. This incident will bereported.其中XXX是你的用户名,也就是你的用户名没有权限使用sudo,我们只要修改一下/etc/sudoers文件就行了。下面是修改方法:
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"。
0 0
- centos下 xxx is not in the soduers file 的解决方法!
- CentOS──xxx is not in the sudoers file解决方法
- CentOS──xxx is not in the sudoers file解决方法
- CentOS──xxx is not in the sudoers file解决方法
- CentOS──xxx is not in the sudoers file解决方法
- CentOS──xxx is not in the sudoers file解决方法
- CentOS──xxx is not in the sudoers file解决方法
- CentOS──xxx is not in the sudoers file解决方法
- CentOS──xxx is not in the sudoers file解决方法
- CentOS──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解决方法
- debian中xxx is not in the sudoers file解决方法
- AE(C#)Shapefile导入mdb数据库
- Android SQLite数据库操作
- Android自定义View 增添onCreate setContent等方法
- freemarker报错之六
- Linux运维第7天:Linux下sed工具及shell编程
- centos下 xxx is not in the soduers file 的解决方法!
- Linux运维第8天:Linux下vim使用及find工具
- 嵌入式Linux内核制作以及TFTP下载到开发板
- JAVA 自定义注解及参数获取
- JavaWebFrame 中控制器的一些问题和测试用例
- IOS_加速计_碰撞检测_小球位置修复_dispatch_once单例
- 顺序表有关操作(查找、插入、删除)
- maven(1)
- Linux运维第9天:Linux下suid,sgid,acl,shell编程