Date: Wed, 10 Sep 1997 20:56:29 -0300 (ADT) From: Antonio Bemfica <bemfica@militzer.me.tuns.ca> To: freebsd-questions@FreeBSD.ORG Subject: Re: exiting shell and PPP security, authentication - solved Message-ID: <Pine.BSF.3.96.970910204800.26806A-100000@militzer.me.tuns.ca> In-Reply-To: <Pine.BSF.3.96.970903133329.6932A-100000@militzer.me.tuns.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks to all that replied to my question. I addopted the solution suggested by Brian Somers <brian@awfulhak.org>: set an alias on the login shell and use it to start ppp. The shell exits properly when ppp stops: Add to the end of /etc/csh.login: # to start PPP set tt = `tty` alias ppplogin 'exec /usr/sbin/ppp -direct ${tt:t}' Add to the end of /etc/profile: # to start PPP tt=$(tty) alias ppplogin='exec /usr/sbin/ppp -direct ttyd0 ${tt##*/}' Antonio -- -------------------------------------------------------------------------- Antonio Bemfica, DalTech, Dalhousie U. | Hay épocas hechas para diezmar los => Support free software, use FreeBSD | rebaños, confundir las lenguas => http://www.FreeBSD.org | y dispersar las tribus. A.C. On Wed, 3 Sep 1997, Antonio Bemfica wrote: > My problem: > > 2. When a connection is closed the shell stays open (somehow the shell > does not seem to exit properly when the ppp process dies). In any case, > the tty is tyed up, and the modem will not answer the line anymore - or > even worse, will allow a user to get a ppp connection without any > authentication!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970910204800.26806A-100000>