当前位置:   article > 正文

is not in the sudoers file_is not in the sudoers file

is not in the sudoers file

使用sudo命令,提示“hadoop is not in the sudoers file.”时:

1.使用root用户登录:su - root

2.打开/etc目录:cd /etc

3.为root用户授权/etc/sudoers文件的写权限:chmod u+w /etc/sudoers

4.编辑sudoers文件:vim /etc/sudoers

5.通过?root命令找到root ALL=(ALL)ALL行,在下一行添加hadooptest ALL=(ALL)ALL行

6.将root用户对sudoers文件的写权限取消:chmod u-w /etc/sudoers

7.登回hadooptest用户,使用sudo命令测试是否成功。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Guff_9hys/article/detail/834620
推荐阅读
相关标签
  

闽ICP备14008679号