not in the sudoers file 解决办法
来源:互联网 发布:unity3d鱼儿游动路径 编辑:程序博客网 时间:2024/05/16 03:39
1.首先切换到root用户:su。。。 user_name ALL=(ALL) ALL
2.cd /etc
3.ls -l sudoers 发现只有读的权限
4.chmod u+w sudoers
5.vi sudoers
6.找到root ALL=(ALL) ALL,在下一行添加:
或者% group_name ALL=(ALL) ALL
或者 user_name ALL=(ALL) NOPASSWD:ALL
或者%group_name ALL=(ALL) NOPASSWD:ALL
说明:有百分号是允许该用户组执行sudoer命令,其中NOPASSWD:ALL表示不用输入命令,其他需要输入命令
7.chmod u-w sudoers
8.切换到当前用户,可以使用sudoers命令了。
0 0
- not in the sudoers file 解决办法
- user is not in the sudoers file 的解决办法
- is not in the sudoers file
- xxx is not in the sudoers file
- Fedora is not in the sudoers file
- user is not in the sudoers file
- xxx is not in the sudoers file
- Ubuntu_Usernameis not in the sudoers file解决方法
- xx is not in the sudoers file
- xxx is not in the sudoers file.
- xx is not in the sudoers file
- is not in the sudoers file
- *** is not in the sudoers file 问题解决
- *** is not in the sudoers file 问题解决
- is not in the sudoers file解决方法
- is not in the sudoers file 解决
- xxx is not in the sudoers file
- xx is not in the sudoers file
- 机器学习1:信息熵
- scp远程复制文件和目录
- UTF-8与UTF-16的区别
- c/c++常见编程错误
- tar命令
- not in the sudoers file 解决办法
- Centos7更改yum源步骤
- win7系统关于jdk软件安装以及配置
- android 开源库
- 在 linux 下使用 CMake 构建应用程序
- linux bunzip2
- 基于Hibernate+Spring+Spring MVC+Bootstrap的管理系统实现
- IF和h5
- 数据结构与算法一