sudo设置和添加普通账号到wheel组步骤:
(1)登录root账号编辑修改配置/etc/sudoers
vi /etc/sudoers
把下列的%wheel前边的的“#”去掉,如下
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL
## Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL
(2)把普通账号加入wheel组下
usermod -aG wheel 普通账号
(3)验证sudo命令
sudo iptables -nL