News for hackers. Stuff that matters.
Re:6.0 Northern California earthquake by jayd16 on Sunday August 24, 2014 @01:30PM (#8219084)
The real wtf is that you need root to ping.
Re:6.0 Northern California earthquake by ryan-c on Sunday August 24, 2014 @02:01PM (#8219175)
Sending ICMP traffic requires a raw socket which needs root to open. To that end, the ping command is normally installed suid root, though these days there are ways to selectively give programs extended privileges like that. Sometimes people do system hardening which removes the setuid bit on ping, requiring sudo to make it work.
Re:6.0 Northern California earthquake by jayd16 on Monday August 25, 2014 @06:21PM (#8224534)
What do you know... TIL.
Re:6.0 Northern California earthquake by koenigdavidmj on Sunday August 24, 2014 @02:41PM (#8219279)
The -f (flood) option requires that you be root, even when the binary is setuid root.
Re:6.0 Northern California earthquake by wglb on Sunday August 24, 2014 @02:06PM (#8219184)
Check your local linux box with:

  file /bin/ping
and you will see that it is setuid to root.
Re:6.0 Northern California earthquake by dekhn on Sunday August 24, 2014 @02:41PM (#8219278)
I think it depends on the distribution: https://wiki.archlinux.org/index.php/Capabilities seems to imply that ping could be used with CAP_NET_RAW capability instead of setuid root. http://blog.siphos.be/2013/05/capabilities-a-short-intro/ suggests that as well.