码迷,mamicode.com
首页 > 系统相关 > 详细

Linux下is not in the sudoers file解决方法

时间:2017-04-17 13:07:37      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:sudoer   sudo   sudoers   item   nbsp   target   是你   photo   com   

  1. 切换到root用户,运行visudo命令

    技术分享
  2.  

    在打开的配置文件中,找到root ALL=(ALL) ALL,在下面添加一行

    xxx ALL=(ALL) ALL 其中xxx是你要加入的用户名称

    技术分享
  3.  

    输入:wq保存并退出配置文件,再次使用sudo命令就不会有上面的提示了

Linux下is not in the sudoers file解决方法

标签:sudoer   sudo   sudoers   item   nbsp   target   是你   photo   com   

原文地址:http://www.cnblogs.com/xiaoyaowuming/p/6722137.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!