echo "clouder ALL=NOPASSWD: /sbin/iptables-save" >>/etc/sudoers
chmod u+w /etc/sudoers vim /etc/sudoers 找到这一行:"root ALL=(ALL) ALL" 在起下面添加"xxx ALL=(ALL) ALL"(这里的xxx是要改的用户名) chmod u-w /etc/sudoers