is not in the sudoers file的解决方法
来源:互联网 发布:简单图片轮播js代码 编辑:程序博客网 时间:2024/05/01 06:51
在用户使用终端时,我们使用sudo + 命令执行某些功能,出现下面的问题:
carya is not in the sudoers file.
carya是你的用户名。这是需要将你的用户名加入sudoers。
首先,使用超级用户权限:
su -
注意su和-之间有一空格,在终端输入上述命令后会提示你输入超级用户的密码。
然后,编辑sudoers文件,将你的用户名加入sudo组。
sudo vi /etc/sudoers
找到
root ALL=(ALL) ALL
一行,然后按字母o键,这时进入vi编辑模式,会在刚才光标的下面一行插入新行,输入
you_uesr_name ALL=(ALL) ALL
然后按esc键,再按冒号wq!强制保存,you_uesr_name是你的用户名,可用whoami查看自己在系统中的用户名
:wq!
- is not in the sudoers file解决方法
- is not in the sudoers file解决方法
- is not in the sudoers file解决方法
- is not in the sudoers file的解决方法
- user_name is not in the sudoers file 的解决方法
- $username is not in the sudoers file 解决方法
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- Linux中“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解决方法
- tedious work done magnificently!
- 不用AuxDIBImageLoad()向opengl中载入bmp纹理
- 我看Chrome
- PHP设计模式之适配器模式,建造者模式,数据访问对象模式
- 多线程的那点事儿(之数据互斥)
- is not in the sudoers file的解决方法
- POJ 1006
- VirtualBox 共享配置(Linux)
- Job的提交—客户端
- 使用boot.ini启动YlmfOS,应该也能启动其他linux
- 【.Net基础】浅谈ADO.Net及其应用
- 这几天
- myeclipse连接数据库并且利用hibernate直接生成数据库表的java类
- 云计算 OpenStack架构预览