解决xxx is not in the sudoers file

约 1 分钟 #Linux
杨秋逸
杨秋逸

首先切换到root用户,然后执行:

usermod -G sudo xxx

xxx 是需要加入sudoer的用户名