From owner-freebsd-questions Wed Sep 10 17:09:51 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA08819 for questions-outgoing; Wed, 10 Sep 1997 17:09:51 -0700 (PDT) Received: from militzer.me.tuns.ca (militzer.me.tuns.ca [134.190.50.153]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA08598 for ; Wed, 10 Sep 1997 17:03:04 -0700 (PDT) Received: from localhost (bemfica@localhost) by militzer.me.tuns.ca (8.8.7/8.8.5) with SMTP id UAA26827 for ; Wed, 10 Sep 1997 20:56:29 -0300 (ADT) Date: Wed, 10 Sep 1997 20:56:29 -0300 (ADT) From: Antonio Bemfica Reply-To: Antonio Bemfica To: freebsd-questions@FreeBSD.ORG Subject: Re: exiting shell and PPP security, authentication - solved In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by hub.freebsd.org id RAA08813 Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Thanks to all that replied to my question. I addopted the solution suggested by Brian Somers : 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!