CentOS将普通用户加入管理员组

将用户username加入wheel组:

usermod -aG wheel username

 将普通用户username加入root组:

usermod -aG sudo username

 永久生效:

编辑/etc/sudoers,加入

debian  ALL=(ALL:ALL) ALL