问题描述解决办法 问题描述 xxx is not in the sudoers file. 解决办法 切换到超级用户模式 su 为文件添加写权限 chmod u+w /etc/sudoers 编辑/etc/sudoers文件# 定位到"root ALL=(ALL) ALL"这一行,添加需要作为root的用户xxx ALL=(ALL) ALL