sudo

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d


# User rules for ansible
ansible ALL=(ALL) NOPASSWD:ALL
web ALL=(ALL) NOPASSWD:ALL
root@rz20674:/home/web# 
微信:jinmuqq222
原文地址:https://www.cnblogs.com/jinmuqq222/p/15098602.html