*BSD News Article 34720


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!constellation!mimbres.cs.unm.edu!tesuque.cs.sandia.gov!lynx.unm.edu!nntp.sunbelt.net!udel!gatech!howland.reston.ans.net!vixen.cso.uiuc.edu!usenet.ucs.indiana.edu!mimosa.astro.indiana.edu!pitts
From: pitts@mimosa.astro.indiana.edu (Jim Pitts)
Subject: Re: Does 'route flush' work?
Message-ID: <CuqwCx.3I7@usenet.ucs.indiana.edu>
Sender: news@usenet.ucs.indiana.edu (USENET News System)
Nntp-Posting-Host: mimosa.astro.indiana.edu
Organization: Indiana University
References: <CuqIwJ.7MM@usenet.ucs.indiana.edu> <jbrown.70.000DCBAF@umi.com>
Date: Thu, 18 Aug 1994 19:19:44 GMT
Lines: 39

In article <jbrown.70.000DCBAF@umi.com>, Jim Brown <jbrown@umi.com> wrote:
>In article <CuqIwJ.7MM@usenet.ucs.indiana.edu> pitts@mimosa.astro.indiana.edu (Jim Pitts) writes:
>>From: pitts@mimosa.astro.indiana.edu (Jim Pitts)
>>Subject: Does 'route flush' work?
>>Date: Thu, 18 Aug 1994 14:29:07 GMT
>
>>Hi,
>
>>I am running the 1.1.5.1 release of FreeBSD.  I have just finished a neat
>>series of scripts.  My machine is connected to a host via uucp.  There are
>>also ppp dialup lines I have access to.  When I want to get to my machine
>>from work via ppp, I just uucp a file named 'startppp'.  In 15 minutes
>>the machine mails me a copy of the output of 'netstat -r' to tell me what
>>IP number the ppp server assigned it.  After I am done, I touch a file in the
>>uucppublic directory called 'stopppp' and within 10 minutes the connection is
>>terminated with the machine going back to ppp.
>
>>I want to flush the routing table after all this is done.  Trouble is that
>>the command 'route flush' does not seem to do anything.
>
>
>You have to be root to use the route add/delete/flush commands.
>You will have to modify your script to run setuid root (<--A SECURITY HOLE)
>or write a wrapper C program to call route that you can make setuid root.
>
[snip]


Yes, of course.  I realize this.  When I type 'route flush' when logged in
as root, nothing happens to the routing table (as per netstat -r).  That
is how I know it is not working (at least for me).

Thanks for the attention, however.

-- 
- pitts@mimosa.astro.indiana.edu            ^       | James J. Pitts        -
- Most people are cattle.  In every        /@\      | IU Physics Dept       -
- generation, a few leaders are born.     /   \     | Voice:   812-855-8247 -
- I am such a leader.                    /_____\    | FAX  :   812-855-5533 -