美文网首页
使用 sudo 命令出现错误

使用 sudo 命令出现错误

作者: 笑叶林 | 来源:发表于2018-07-12 09:18 被阅读6次

    异常信息:

    用户名 is not in the sudoers file. This incident will be reported.

    解决方案:

    1. chmod u+w /etc/sudoers

    2. vim /etc/sudoers

    root ALL=(ALL) ALL 下添加如下代码:

       用户名 ALL=(ALL)ALL
    

    3. chmod u-w /etc/sudoers

    相关文章

      网友评论

          本文标题:使用 sudo 命令出现错误

          本文链接:https://www.haomeiwen.com/subject/wsrlpftx.html