linux sudo xxx is not in the sudoers file错误
来源:互联网 发布:手机淘宝联盟购买省钱 编辑:程序博客网 时间:2024/06/05 22:25
sudo命令可以使其他非root用户以root身份来执行命令,执行时需要用户自身的密码。
但是并非所有人都能执行sudo命令,只有在/etc/sudoers里面的用户才能执行。否则,将会出现:xxx is not in the sudoers file的错误。
若想要使用 sudo 执行属亍 root 的权限命令,则 root 需要先使用 visudo 去修改 /etc/sudoers ,使该账号能够使用全部或部分的 root 命令功能。因为 /etc/sudoers 是有特定语法的,因为建议使用visudo来编辑修改。如果语法错误那会造成无法使用 sudo 命令的后果。因此才会使用 visudo 去修改, 在结束离开修改画面时,系统会去检验 /etc/sudoers 的语法。
例如,想加入linusfay用户能够执行sudo
[root@linusfay ~]# visudo --visudo之间没有空格
大概在76行左右,找到
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
加入
linusfay ALL=(ALL) ALL
离开 保存。
- linux sudo 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
- Linux教程:XXX is not in the sudoers file解决
- Linux中“xxx is not in the sudoers file”解决方法
- Linux学习笔记 --- xxx is not in the sudoers file
- 【Linux】xxx is not in the sudoers file
- linux下遇到xxx is not in the sudoers file
- xxx is not in the sudoers file 和 Authority XXX 不能sudo解决方法
- Linux报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- Linux报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- linux报"xxx is not in the sudoers file.This incident will be reported"错误
- linux系统使用sudo命令报xxx is not in the sudoers file.This incident will be reported.的解决方法
- unix 网络 编程 readv writev
- 黑马程序员_IO流——切割文件split
- 由SQL Server的job出错调查引起的思考
- java jxl 读取excel文件
- Java中InetAddress 的dns cache应用问题
- linux sudo xxx is not in the sudoers file错误
- 百度不为人知的API
- FTP上传工具2
- cgroup学习(五)——create new cgroup && (六)——attach task
- 一个工作两年程序员的总结(很好)
- 粗略判断字符串是否为ethernet MAC address
- Android之PreferenceActivity
- 胆电容封装
- C++ Google Test 学习心得总结-1