From owner-freebsd-questions Sun Jul 13 15:39:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA11056 for questions-outgoing; Sun, 13 Jul 1997 15:39:32 -0700 (PDT) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA11037 for ; Sun, 13 Jul 1997 15:39:16 -0700 (PDT) Received: from awfulhak.org (dev.lan.awfulhak.org [10.0.1.5]) by awfulhak.demon.co.uk (8.8.5/8.8.5) with ESMTP id OAA00302; Sun, 13 Jul 1997 14:58:49 +0100 (BST) Received: from dev.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.6/8.8.6) with ESMTP id OAA13695; Sun, 13 Jul 1997 14:58:48 +0100 (BST) Message-Id: <199707131358.OAA13695@awfulhak.org> X-Mailer: exmh version 2.0delta 6/3/97 To: Chuck cc: questions@FreeBSD.ORG Subject: Re: pppd In-reply-to: Your message of "Sat, 12 Jul 1997 09:25:39 EDT." <199707121325.JAA05298@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 13 Jul 1997 14:58:48 +0100 From: Brian Somers Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > I have a script, /usr/local/bin/pppgo, which dials my ISP via pppd. > Everything works except one thing. When the line drops (the ISP > kills the line), ip-down runs, just as ip-up ran when connection > was first made. It attempts to "route delete $IP" and the like, > but always gets: > > route: must be root to alter routing table: Permission denied > > even though TFM tells me that ip-down is run as root! After all, > pppd is setuid root. > Any ideas? [.....] Well, with ppp, any shell commands in the config files are run as the user that invoked ppp rather than as God. I would think pppd is the same. Without this "feature", anyone can create their own config files or run ppp interactively and do what they want. I don't think you can create your own pppd config files, but you can pass what you want to connect/disconnect on the command line. > Chuck Bacon -- crtb@capecod.net > ABHOR SECRECY -- DEFEND PRIVACY -- Brian , Don't _EVER_ lose your sense of humour....