From owner-freebsd-questions Sat Jul 12 18:06:01 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA27565 for questions-outgoing; Sat, 12 Jul 1997 18:06:01 -0700 (PDT) Received: from localhost (ost76.capecod.net [204.255.214.76]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id SAA27552 for ; Sat, 12 Jul 1997 18:05:54 -0700 (PDT) Received: (from crtb@localhost) by localhost (8.6.12/8.6.12) id JAA05298 for questions@freebsd.org; Sat, 12 Jul 1997 09:25:39 -0400 Date: Sat, 12 Jul 1997 09:25:39 -0400 From: Chuck Message-Id: <199707121325.JAA05298@localhost> To: questions@freebsd.org Subject: pppd 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? Here's my ip-down: #!/bin/sh # /etc/ppp/ip-down Date=`date` Int=$1; shift Dev=$1; shift Spd=$1; shift LIP=$1; shift RIP=$1; shift rm -f /tmp/pppd.up cat > /tmp/pppd.down <