当前位置:   article > 正文

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

river is not in the sudoers file
当我们使用sudo命令切换用户的时候可能会遇到提示以下错误:xxx is not in the sudoers file. This incident will be reported,xxx是你当前的用户名,究其原因是用户没有加入到sudo的配置文件
解决方法
su root  切换到root用户下
终端运行visudo命令
在打开的配置文件中,找到root ALL=(ALL) ALL,在下面添加一行
user ALL=(ALL) ALL 其中user是你要加入的用户名称
按ESC退出编辑状态
输入  :wq保存文件
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/正经夜光杯/article/detail/834702
推荐阅读
相关标签
  

闽ICP备14008679号