*BSD News Article 42111


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!uwm.edu!math.ohio-state.edu!howland.reston.ans.net!news.sprintlink.net!EU.net!sun4nl!News.Simplex.NL!Simplex.NL!rob
From: rob@Simplex.NL (Rob Simons)
Newsgroups: comp.os.386bsd.questions
Subject: PPP won't die on exit :-(
Date: 5 Feb 1995 21:40:15 GMT
Organization: Simplex Networking Amsterdam, The Netherlands.
Lines: 39
Message-ID: <3h3gki$4ag@News.Simplex.NL>
NNTP-Posting-Host: simplex.nl
X-Newsreader: TIN [version 1.2 PL2]

Hi,

Well, I've set up PPP now on a FreeBSD 1.1.5.1 box, and PPP itself
works like a charm .. however the closing of the lines is another
matter entirely.

The client attaches to the server through a modem line, and pppd gets
automatically fired up. When the client site desides it wants to hang
up, it kills his running pppd and hangs up the phone line.
The server side just sits and basically does nothing except hog up the
ttyd line. The modem does answer again, but since the ttyd is hogged,
no getty is running on it.

I've tried starting the pppd from a shell script, or directly from the
passwd file -as- shell, no difference there. (what is the right method 
btw ?)

Now I'm busy anyway, I have a few other questions as well:
Can't a sh script run as suid root ?
Can I give a user a script as shell in the passwd file -with- arguments?
      i.e. the shell field would look like: '/etc/ppp/ppplogin machine'
How can I alter the routing tables automatically when a PPP client logs
on ?  (because there are a few other machines which should get routed
through this PPP client)

Well, anyone who could shed some light on all or some of the above
would have my eternal gratitude .. 

Regards,

- Rob.


--
/*--------------------------------------------------------------*\
/*   Rob Simons                      |  rob@simplex.nl          *\
/*   ----------    |    -----------  |  rob@pebbles.simplex.nl  *\
/*   Novell Netware System Operator  |  UNIX system operator    *\
/*--------------------------------------------------------------*\