红联Linux门户
Linux帮助

you arenot in the sudoers file 是怎么回事阿?

发布时间:2011-04-05 21:39:47来源:红联作者:piratechina
今天root更改了一些文件,然后每次 sudo -i
总会 you are not in the sudoers file . The incident wil be reported!
文章评论

共有 4 条评论

  1. pallana 于 2011-04-07 13:29:51发表:

    输入su -
    输入密码后成为root用户
    执行命令visudo
    找到
    ## Allow root to run any commands anywhere
    root ALL=(ALL) ALL
    在下面加入你的用户名如
    ## Allow root to run any commands anywhere
    root ALL=(ALL) ALL
    YourName ALL=(ALL) ALL

    注意:中间全部是TAB键,不要打空格,否则会出错。
    保存,重启系统就可以使用sudo了

  2. piratechina 于 2011-04-07 12:32:09发表:

    google上已解决,但是这到底是什么原因造成的呢?

  3. 相思爱文 于 2011-04-06 09:00:32发表:

    用visudo重新配置权限

  4. RaymondJade 于 2011-04-05 21:52:57发表:

    你没有权限用执行sudo命令
    要更改/etc/sudoers文件的内容
    你可以登录root用户吗?