用户加入sudo列表 分类 编程笔记 · 发表于 2022-01-06 19:59:21 新创建的用户,使用sudo切换到root时提示错误 1xxx is not in the sudoers file. This incident will be reported. 解决方法: 12345678910# 切换到`root`下su # 授权chmod u+w /etc/sudoers# 编辑sudoers文件vi /etc/sudoers# 添加username ALL=(ALL) ALL# 保存chmod u-w /etc/sudoers