Date: Wed, 03 Sep 1997 20:55:54 +0100 From: Brian Somers <brian@awfulhak.org> To: Antonio Bemfica <bemfica@militzer.me.tuns.ca> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: exiting shell and PPP security, authentication Message-ID: <199709031955.UAA15139@awfulhak.demon.co.uk> In-Reply-To: Your message of "Wed, 03 Sep 1997 13:57:07 -0300." <Pine.BSF.3.96.970903133329.6932A-100000@militzer.me.tuns.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
> My problem: > > 1. Users get a connection established without problems, but: > > 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! Remove the script and make it an alias or a function or something like that. This will get rid of the unnecessary parent shell: $ cat >>.profile <<eof pppmode(){ tt=$(tty) exec /usr/sbin/ppp -direct ${tt##*/} } eof > 3. I would prefer not to have to create duplicate accounts for every one > of my users who wishes to connect via ppp (and set the shell of their > ppp accounts to be the script above - this setup never hangs...) and > neither would I like to use the ppp.secret method. $ cat >.profile <<eof . /home/service eof $ cat >/home/service <<eof tt=$(tty) echo -n "Service: " read svc test "$svc" = ppp && exec /usr/sbin/ppp -direct ${tt##*/} ... eof > Is there any possible solution to my problem? What am I doing wrong? > > Thanks in advance for any help. > > 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. > -- 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: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709031955.UAA15139>