Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Aug 1996 22:55:44 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-hackers@freebsd.org (FreeBSD hackers)
Cc:        mnewell@kaizen.net (Mike Newell)
Subject:   Re: Routed supports variable-length netmasks?
Message-ID:  <199608162055.WAA07613@uriah.heep.sax.de>
In-Reply-To: <Pine.SGI.3.95.960816123113.11933E-100000@dada.kaizen.net> from Mike Newell at "Aug 16, 96 12:32:07 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
As Mike Newell wrote:

> > I believe I hacked a copy of route to fix this problem and installed it as
> > /etc/ppp/route...
> 
> That's what I had planned to do, but I wasn't sure if something else would
> break if I just took out the UID checks.  If it works for you, I'll start
> hack'n tonight.  :-)

NOOOOOOOOOOOOOOO!

Don't do it.  You're going to let everybody who has execute permission
to this script manipulate your routing tables.  Read my other
followup...

You're better doing:

	su root -c 'route add ...'

Since you're already running with EUID == 0 in the scripts, you should
be able to `su' without a password, in order to execute the route
command.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199608162055.WAA07613>