Hello, Homebrew is a software installer for OSX, and I'm upgrading the formula for fping to use your version. By design, Homebrew does not install anything with sudo, simply by changing the ownership of /usr/local to the user who installs everything. Is there a patch so that fping can be run without changing the owner to root and without chown u+s? I would have tried to craft one for you, but I'm unfamiliar with this. Thanks.
It should be possible to avoid the setuid requirement by using ICMP DGRAM sockets on Mac OSX:
I am not developing myself on a Mac, so help from a Mac developer would be nice.
Closing this to lower the issue count. Someday everyone will have a mac, and this can be reopened :-)
I appreciate it, but I think that this issue is best left open. It doesn't disturb me and so it isn't hidden.
Ok go for it. I don't have permissions.
Allow running as non-root on Mac OS X by using non-privileged ICMP (#7)
Refactor socket handling, allow running as non-root on Mac OS X by us…
…ing non-privileged ICMP (#7)
@schweikert I installed fping with homebrew which uses the following options:
However, I can't seem to run it as an unprivileged user despite 0ab66f8 fixing that issue.
~ $ fping google.com
fping: can't create raw socket (must run as root?) : Operation not permitted
That's because 0ab66f8 is not part of release 3.6 (but will be in 3.7)
Excellent! Thanks for the clarification (and quick reply!). 😄
Note that fping 3.7 with non-root support for Mac OS X is now released.
update fping to 3.7
* remove caveat for setuid, fixed in 3.7 schweikert/fping#7
* Refs #3437
@schweikert Thanks again!!
@justindowning: please use fping 3.8 instead. there is a bug with loop mode in fping 3.7