Linux下is not in the sudoers file解决方法
来源:互联网 发布:淘宝有好货怎么收费 编辑:程序博客网 时间:2024/05/16 01:25
当我们使用sudo命令切换用户的时候可能会遇到提示以下错误:xxx is not in the sudoers file. This incident will be reported,xxx是你当前的用户名,究其原因是用户没有加入到sudo的配置文件
解决方法
su root 切换到root用户下
终端运行visudo命令
在打开的配置文件中,找到root ALL=(ALL) ALL,在下面添加一行
user ALL=(ALL) ALL 其中user是你要加入的用户名称
按ESC退出编辑状态
输入 :wq保存文件
解决方法
su root 切换到root用户下
终端运行visudo命令
在打开的配置文件中,找到root ALL=(ALL) ALL,在下面添加一行
user ALL=(ALL) ALL 其中user是你要加入的用户名称
按ESC退出编辑状态
输入 :wq保存文件
0 0
- Linux下is not in the sudoers file解决方法
- Linux下is not in the sudoers file解决方法
- Linux下is not in the sudoers file解决方法
- Linux下is not in the sudoers file解决方法
- Linux下is not in the sudoers file解决方法
- Linux下is not in the sudoers file解决方法
- Linux下is not in the sudoers file解决方法
- Linux下is not in the sudoers file解决方法
- Linux下is not in the sudoers file解决方法
- Linux中“is not in the sudoers file”解决方法
- Linux中“is not in the sudoers file”解决方法
- Linux中“is not in the sudoers file”解决方法
- Linux中“xxx is not in the sudoers file”解决方法
- Linux中“is not in the sudoers file”解决方法
- is not in the sudoers file解决方法
- is not in the sudoers file解决方法
- is not in the sudoers file解决方法
- linux下遇到xxx is not in the sudoers file
- coffeescript学习笔记二
- iOS中instancetype和id之间的区别
- node.js学习笔记(7)--Node.js与MongoDB简单交互
- SQL:不存在则insert存在则update
- phpcms中当在后台发布文章提示文件不可写,后台生成不了静态页时
- Linux下is not in the sudoers file解决方法
- Android利用系统Action裁剪图片大小
- PID概述以及在无人机中的应用
- iOS同步对象性能对比(iOS锁性能对比)
- 【C++】《C++标准程序库》小结第十三章-stream(1)
- Java NIO(一)入门篇
- 起底多线程同步锁(iOS)
- 软件项目流程
- POJ 3258 River Hopscotch (二分经典)