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# 
posted @ 2021-08-04 14:08  zxhy哦  阅读(34)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css