Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jul 1997 14:58:48 +0100
From:      Brian Somers <brian@awfulhak.org>
To:        Chuck <crtb@capecod.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: pppd 
Message-ID:  <199707131358.OAA13695@awfulhak.org>
In-Reply-To: Your message of "Sat, 12 Jul 1997 09:25:39 EDT." <199707121325.JAA05298@localhost> 

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
> 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 <brian@awfulhak.org>, <brian@freebsd.org>
      <http://www.awfulhak.org>;
Don't _EVER_ lose your sense of humour....





Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?199707131358.OAA13695>