一般用户下执行sudo命令提示sunxi is not in the sudoers file. This incident will be reported
来源:互联网 发布:沈阳哪里有mac专柜 编辑:程序博客网 时间:2024/06/08 10:16
debian-server
sunxi@sunxi $ sudo su
sunxi is not in the sudoers file. This incident will be reported
........error (不进入root)
在一般用户下执行sudo命令提示sunxi is not in the sudoers file. This incident will be reported.解决方法:
一、$where is sudoers -------找出文件所在的位置,默认都是/etc/sudoers二、#chmod u+w /etc/sudoers 以超级用户登录su -root ,修改文件权限即添加文件拥有这的写权限 限,ls -al /etc/sudoers 可以查看原文件的权限。
三、vim /etc/sudoers 编辑文件,在root ALL=(ALL)ALL行下添加XXX ALL=(ALL)ALL,XXX为你的用户名。添加方法:找到root行,按下”i“键进入编辑模式添加即可!编辑好后esc键进入一般模式,“:w!",":q!"保存退出!
最后, #chmod u-w /etc/sudoers 回到文件的原权限!
## This file MUST be edited with the 'visudo' command as root.## Please consider adding local content in /etc/sudoers.d/ instead of# directly modifying this file.## See the man page for details on how to write a sudoers file.#Defaults env_resetDefaults mail_badpassDefaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin://sbin:/bin"# Host alias specification# User alias specification# Cmnd alias specification# User privilege specificationroot ALL=(ALL:ALL) ALLsunxi ALL=(ALL)ALL# Members of the admin group may gain root privileges%admin ALL = (ALL) NOPASSWD: ALL# Allow members of group sudo to execute any command%sudo ALL=(ALL:ALL) ALL# See sudoers(5) for more information on "#include" directives:#includedir /etc/sudoers.d
2,xxx
0 0
- 一般用户下执行sudo命令提示sunxi is not in the sudoers file. This incident will be reported
- 使用用sudo时提示"### is not in the sudoers file. This incident will be reported.
- 使用用sudo时提示"### is not in the sudoers file. This incident will be reported.
- sudo提示“is not in the sudoers file. This incident will be reported”解决方法
- sudo 提示oracle is not in the sudoers file. This incident will be reported的解决方法
- "sudo su -", oracle is not in the sudoers file. This incident will be reported.
- 解决用户执行sudo 报错:xxx is not in the sudoers file. This incident will be reported
- 普通用户执行sudo报hadoop 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.的解决方法
- sodu时提示:XXX is not in the sudoers file. This incident will be reported
- linux 下hadoop is not in the sudoers file. This incident will be reported.
- centos下xxx is not in the sudoers file.this incident will be reported
- 将一般的用户加入sudo组is not in the sudoers file. This incident will be reported解决方法
- 将一般的用户加入sudo组is not in the sudoers file. This incident will be reported解决方法
- Linux 使用sudo时,报错 is not in the sudoers file. This incident will be reported 解决
- 普通用户开通sudo权限:xxx is not in the sudoers file.This incident will be reported.的解决方法
- 解决linux下sudo更改文件权限报错xxxis not in the sudoers file. This incident will be reported.
- 解决linux下sudo更改文件权限报错xxxis not in the sudoers file. This incident will be reported.
- 使用源码gcc-4.8.2安装c++编译器C++11
- 初次学习PHP总结
- Laravel 5 中使用ckfinder的问题。config.php设置。
- lucene 建立CRUD操作
- MFC中字符集(1)——支持 Unicode
- 一般用户下执行sudo命令提示sunxi is not in the sudoers file. This incident will be reported
- 第十四周项目1(3)-小玩文件
- LeetCode Longest Palindromic Substring
- 20个需要掌握的代码命名小贴士
- 程矢axure夜话:Axure手机高保真原型素材偷盗篇
- 安装R语言的包方法
- 红黑树的插入
- QT编写的嵌入式工业控制系统
- centos7使用无线wifi连接