在root权限下,使用usermod更改用户所属用户组 usermod -G sudo 用户名 若显示 可手动在/etc/sudoers文件中添加 用户名 ALL=ALL ALL;这三项中用Tab键隔开