Ad Widget

Collapse

Fping can only be run by root? icmpping not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • morhaven
    Junior Member
    • Apr 2010
    • 22

    #1

    Fping can only be run by root? icmpping not working

    Hi need some assistance...

    I was following the documentation for zabbix 1.8 to make sure icmpping and icmppingsec
    worked fine. I had icmp ping working pretty well, but could not make icmppingsec to work.

    so I followed the manul in zabbix 1.8 to allow fping access

    sudo chmod ug+s /usr/bin/fping
    sudo chmod 710 /usr/bin/fping
    sudo chown root:zabbix /usr/bin/fping

    now noting works

    zabbix@gnmc:/home/zabix$ fping
    This program can only be run by root, or it must be setuid root.



    ubuntu 9.10
    zabbix 1.8
    Last edited by morhaven; 28-04-2010, 20:42.
  • alixen
    Senior Member
    • Apr 2006
    • 474

    #2
    Hi,

    Originally posted by morhaven
    so I followed the manul in zabbix 1.8 to allow fping access

    sudo chmod ug+s /usr/bin/fping
    sudo chmod 710 /usr/bin/fping
    sudo chown root:zabbix /usr/bin/fping

    now noting works
    From the manual:
    shell> chown root:zabbix /usr/sbin/fping
    shell> chmod 710 /usr/sbin/fping
    shell> chmod ug+s /usr/sbin/fping
    Order of commands matters, Linux will reset setuid bit after a chown for security reasons.
    So, you must do these commands in the order defined in the manual (chown first).

    Hope this helps
    Alixen
    http://www.alixen.fr/zabbix.html

    Comment

    • morhaven
      Junior Member
      • Apr 2010
      • 22

      #3
      thanks that fixed it.

      Comment

      Working...