Add user into admin group on CentOS
将用户加入admin组
- add
username
intowheel
group:
usermod -aG wheel username
- add
username
intoroot
group:
usermod -aG sudo username
- permanent change
edit /etc/sudoers
and add
debian ALL=(ALL:ALL) ALL
将用户加入admin组
username
into wheel
group:usermod -aG wheel username
username
into root
group:usermod -aG sudo username
edit /etc/sudoers
and add
debian ALL=(ALL:ALL) ALL