chmod u+w /etc/sudoers
vi /etc/sudoers
如下修改, 使admin这个组的账号sudo无密码
## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
%admin ALL=(ALL) NOPASSWD: ALL
chmod u-w /etc/sudoers
chmod u+w /etc/sudoers
vi /etc/sudoers
如下修改, 使admin这个组的账号sudo无密码
## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
%admin ALL=(ALL) NOPASSWD: ALL
chmod u-w /etc/sudoers