How is it possible to run a traceroute-like program without needing root privileges?

brian picture brian · Sep 16, 2008 · Viewed 7.1k times · Source

I have seen another program provide traceroute functionality within it but without needing root (superuser) privileges? I've always assumed that raw sockets need to be root, but is there some other way? (I think somebody mentioned "supertrace" or "tracepath"?) Thanks!

Answer

moonshadow picture moonshadow · Sep 16, 2008

Ping the target, gradually increasing the TTL and watching where the "TTL exceeded" responses originate.