sudo
chattr -ai
/etc/sudoers
chmod
640
/etc/sudoers
echo
"zabbix ALL=(ALL) NOPASSWD: ALL"
>>
/etc/sudoers
chmod
440
/etc/sudoers
chattr +ai
/etc/sudoers
用一个例子来演示会更加清晰
chattr -ai
/etc/sudoers
chmod
640
/etc/sudoers
echo
"zabbix ALL=(ALL) NOPASSWD: ALL"
>>
/etc/sudoers
chmod
440
/etc/sudoers
chattr +ai
/etc/sudoers