美文网首页
yourname is not in the sudoers f

yourname is not in the sudoers f

作者: 我的女友漏气了 | 来源:发表于2017-02-23 15:19 被阅读0次

1.切换roo用户

su -

2.添加写的命令

chmod u+w /etc/sudoers

3.编辑sudoers文件

vi  /etc/sudoers

4.按键盘i

5.找到root ALL=(ALL) ALL,复制到下一行 yourname ALL=(ALL) ALL

6.去掉写命令

chmod u-w /etc/sudoers

相关文章

网友评论

      本文标题:yourname is not in the sudoers f

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