home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!spool.mu.edu!agate!ames!sgi!rhyolite!vjs
- From: vjs@rhyolite.wpd.sgi.com (Vernon Schryver)
- Subject: Re: traceroute
- Message-ID: <ppj8vh4@rhyolite.wpd.sgi.com>
- Organization: Silicon Graphics, Inc. Mountain View, CA
- References: <1992Sep12.210628.5967@biome.bio.ns.ca>
- Date: Sun, 13 Sep 1992 05:38:06 GMT
- Lines: 36
-
- In article <1992Sep12.210628.5967@biome.bio.ns.ca>, silvert@biome.bio.ns.ca (Bill Silvert) writes:
- > I've been asked why only root can run traceroute on a PI. It is mode 755,
- > but only root can access the necessary socket. Apparently on other
- > platforms you don't have to be root to run it. Any answers out there?
-
-
- Traceroute uses a raw socket to fake up packets as if they came from
- the real protocol stacks, but with strange values.
-
- We chose to not make traceroute SUID because traceroute is a
- fundamentally nasty gadget. It sends UDP packets to arbitrary sockets
- with limited TTL's, and waits for the sound of the distant explosion.
- (Sound is carried on ICMP's.) What happens if on the target there is
- an innocent program that just happens to be using the UDP socket? It
- is likely to get traceroute's grenade, and may or may not cope well
- with the noise.
-
- It would have been so much better if Van Jacobson had gone to the extra
- little effort to use fake TCP packets as the grenades. They would have
- generated either TTL-exceeded ICMP's or RST's, without appearing to any
- legitimate application as real but broken data. It would have been a
- little harder to detect the returned RST's. It would also have been so
- much better if vendors such as Silicon Graphics could just have the
- time to fix such things instead of porting the latest New Jersey
- nonsense.
-
- Many of us, including people such as me who influenced and supported
- the non-SUID choice, routinely `chmod u+s /usr/etc/traceroute`.
- Its usefulness exceeds its nastiness, if you willing and knowingly
- accept the consequences.
-
-
- Vernon Schryver, vjs@sgi.com
-
- P.S. Why did you use the "Distribution: na" line to restrict the
- distribution of your article?
-