After appended by visudo command from root user:
Code:
alibaba ALL=(ALL) NOPASSWD:/usr/sbin/iptstate -s
Then switch to alibaba user:
And run, but it's not show anything
Code:
[alibaba@dev ~]$ /usr/sbin/iptstate -s
IP Tables State Top -- Sort by: SrcIP
Source Destination Proto State TTL
If use sudo, user zabbix still required password
Code:
[alibaba@dev ~]$ sudo /usr/sbin/iptstate -s
[sudo] password for alibaba:
alibaba is not in the sudoers file. This incident will be reported.
What happened to my system?
In logs
Code:
type=USER_AUTH msg=audit(1349169582.180:6547): user pid=19317 uid=0 auid=0 msg='PAM: authentication acct="alibaba" : exe="/usr/bin/sudo" (hostname=?, addr=?, terminal=/dev/pts/8 res=success)'