*BSD News Article 70965


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!odin.oar.net!malgudi.oar.net!imci4!imci3!newsfeed.internetmci.com!news.comm.net!news.sprintlink.net!news-dc-10.sprintlink.net!worldlinx.com!news.bellglobal.com!news
From: rpageau@inexpress.net (Roch Pageau)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: PPP login problem
Date: Fri, 14 Jun 1996 00:18:17 GMT
Organization: Internet Express
Lines: 76
Message-ID: <4pqba1$d8c@news.bellglobal.com>
NNTP-Posting-Host: 204.101.127.12
X-Newsreader: Forte Free Agent 1.0.82

We have been having a problem with ppp user logins being cut at the
end of the dialer_login script( 20-30% of the time both with TCPman
and Win95). I'm using version 2.1.  I keep getting the message:

        Kernel: ppp1(or according #):   output stalled

on my console.

and this is a sample of my ppplog file:

------------------------------------------------------------------------------
Wed Jun 12 22:31:48 1996 moco: login script failed
Wed Jun 12 22:31:48 1996 moco: end of session
Wed Jun 12 22:32:39 1996 dialin: moco
Wed Jun 12 22:32:41 1996 moco: login script failed
Wed Jun 12 22:32:42 1996 moco: end of session
Wed Jun 12 22:33:50 1996 dialin: moco
Wed Jun 12 22:33:52 1996 moco: login script failed
Wed Jun 12 22:33:52 1996 moco: end of session
Wed Jun 12 22:34:44 1996 dialin: moco
Wed Jun 12 22:34:46 1996 moco: login script failed
Wed Jun 12 22:34:46 1996 moco: end of session
Wed Jun 12 22:36:11 1996 dialin: papion
Wed Jun 12 22:36:13 1996 papion: login script failed
Wed Jun 12 22:36:13 1996 papion: end of session
Wed Jun 12 22:36:32 1996 montero: end of session
Wed Jun 12 22:38:27 1996 dialin: moco
Wed Jun 12 22:38:33 1996 moco: connected on ppp2  

--------------------------------------------------------------------------

My dialer_login script is located in /usr/bin and it is executed as
soon as the user has entered his username and passwd This file is the
default shell for users and is listed in the /etc/shells file The
users get knocked out of the system as soon as this program has run
and made the choice of 1 for ppp.  This could happen 3-4 times and
then it will let you access the system with no problems. Sometimes
this all happends on the same modem and other times not. 

Here is a copy of my dialer_login script:
---------------------------------------------------------------------------

# digiboard modem ports all start with ttyA (change as needed for
# various multiport cards)
MODEMPORTS="ttyA"
# set UCNT to count of this user showing up in who
echo ""
echo "Votre temps accumuler en ce mois est:"
logname|/usr/sbin/ac -p $LOGNAME
echo "                       heures."
echo ""
sleep 1
echo "1) PPP  'point-to-point' "
echo "2) shell 'command line' "
echo " "
echo -n "Choisir (1-2) :"

read ans
case $ans in
        1)
        exec /usr/bin/ppp
         ;;
        2) 
        exec /bin/ksh
        ;;
esac  
-----------------------------------------------------------------------------

I have also found that when the system gets busy, ie many logins at
the same time, we seem to have more problems.

Any help would be appreciated

Roch Pageau 
Sysadm in trainning