liboping icon indicating copy to clipboard operation
liboping copied to clipboard

Mac version needs sudo

Open SimenB opened this issue 8 years ago • 6 comments
trafficstars

I tried searching for existing issue...

Would it be possible to make the mac version not require sudo?

$ oping -c 1 github.com
PING github.com (192.30.253.113) 56 bytes of data.
ping_send failed: Operation not permitted
$ sudo oping -c 1 github.com
Password:
PING github.com (192.30.253.113) 56 bytes of data.
56 bytes from github.com (192.30.253.113): icmp_seq=1 ttl=52 time=100.46 ms

--- github.com ping statistics ---
1 packets transmitted, 1 received, 0.00% packet loss, time 100.5ms
RTT[ms]: min = 100, median = 100, p(95) = 100, max = 100

https://github.com/Homebrew/homebrew-core/blob/bc5d3eb18d081f2726f7a74ab03369996639afda/Formula/liboping.rb#L22-L24

It's been that way since 2011... https://github.com/Homebrew/homebrew-core/commit/e5f6e112bfd69344376e12fc1c8ca1b99f03a731#diff-824c42d61d2b8fa25d0c96735888a432R21

SimenB avatar May 29 '17 16:05 SimenB

Title should be changed to "Mac version needs sudo"; the problem is not Homebrew-specific. Can we get any response as to why this is the case? Just to be clear, /usr/bin/ping works without sudo.

ryandesign avatar Mar 08 '18 13:03 ryandesign

Hello,

same issue here.

ping works without sudo oping/noping needs sudo. without sudo: "ping_send failed: Operation not permitted"

What could i help to solve this issue?

Thanks for the great tool

aendes avatar Dec 02 '18 15:12 aendes

+1

nicoh88 avatar Jun 04 '19 08:06 nicoh88

same here

crazy-matt avatar Jan 29 '21 16:01 crazy-matt

noping requires sudo for various linux distros going back a few years since i discovered this utility. Just adding this as a comment as i didn't see any other mention of this. There was also a bug opened up in ubuntu's bugracker i came across a couple years ago without a solution.

sirweazel avatar Feb 17 '21 21:02 sirweazel

+1

larsinka avatar Jul 06 '23 09:07 larsinka