当前位置:   article > 正文

Ubuntu sudo 出现 is not in the sudoers file解决方案_is not in the sudoers file. this incident will be

is not in the sudoers file. this incident will be reported.

ubuntu中如果新创建的用户在操作一些文件提示
用户名 is not in the sudoers file. This incident will be reported.
说明该用户不具备权限操作
1、切换到能使用root权限的用户
使用root权限修改sudoers文件

vim /etc/sudoers
  • 1

添加一行
your_username ALL=(ALL) ALL
在这里插入图片描述

:wq!保存,要加!,因为是只读,所以要强制保存。
保存后就可以切换回用户权限操作文件了。

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

闽ICP备14008679号