CentOS,sudoers解决方法
来源:互联网 发布:淘宝网天猫儿童玩具 编辑:程序博客网 时间:2024/05/09 17:53
CentOS,sudoers解决方法
用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文件。也就是输入命令"vim /etc/sudoers",输入"i"进入编辑模式,找到这一 行:"root ALL=(ALL) ALL"在起下面添加"xxx ALL=(ALL) ALL"(这里的xxx是你的用户名),然后保存(就是先按一 下Esc键,然后输入":wq")退出。
4)撤销文件的写权限。也就是输入命令"chmod u-w /etc/sudoers"。
0 0
- CentOS,sudoers解决方法
- CentOS添加sudoers
- 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 添加用户到sudoers
- centos把用户加入sudoers
- 用户不在sudoers中的解决方法
- CentOS Sudo 提示用户不在sudoers文件
- CentOS,添加用户到sudoers中
- Centos 7 将用户添加到sudoers
- centos下将用户加进sudoers中
- Ubuntu_Usernameis not in the sudoers file解决方法
- iOS 各种网络编程总结--进程、线程、Socket、HTTP、TCP/IP、TCP和UDP
- 维生素A的功效有哪些?
- what is tlv (tag-length-value)
- JavaScript入门之函数的高级写法
- 不要只甘于做一个程序员
- CentOS,sudoers解决方法
- 李小冉传婚讯 与好友回京拥抱告别
- CocoaPods:管理Objective-c 程序中各种第三方开源库关联
- ifconfig命令
- 百度网盘的 Python 客户端安装
- usim 3gpp
- hduoj1002——A + B Problem II
- TextView图文混排图片被截断的问题以及Android省略号只有一个点的问题
- linux下使用yum安装mysql