From owner-freebsd-questions Mon Oct 27 16:58:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA11260 for questions-outgoing; Mon, 27 Oct 1997 16:58:49 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA11246 for ; Mon, 27 Oct 1997 16:58:41 -0800 (PST) (envelope-from brian@awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.7/8.8.5) with ESMTP id XAA16029; Mon, 27 Oct 1997 23:44:35 GMT Message-Id: <199710272344.XAA16029@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0zeta 7/24/97 To: Sigi cc: Brian Somers , freebsd-questions@FreeBSD.ORG Subject: Re: (3) UserPPP Problem by hang up In-reply-to: Your message of "Mon, 27 Oct 1997 08:02:20 +0100." <1.1.27101997.080220.120.0.BC.0@mail.remsmurr.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 27 Oct 1997 23:44:35 +0000 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk [.....] > >I don't understand the problem here. Being part of group network > >enables you to run ppp -direct and nothing else. It shouldn't > >interfere with any other setup. > > It's a problem of my own insatllation not of the error or problem > that the ppp doesn't work right on this new installation. For some > work I could check the user GID to give hime some rights for > something to do. Now I can't do it anyway because all users have the > same GID "network". This I'm meaning. But it's not the problem, how I > said. You don't have to change your users GID, just add them to group network in /etc/group, for example: $ id uid=10003(dummy) gid=10003(dummy) groups=69(network) > >> Thanks. BUT IT DOESN'T WORK. > > > >How have you got things set up ? Are you exec'ing ppp - ie, the ppp > >-direct process should have a parent process id of 1. > > > >I'm assuming that this is over a modem link too. If you still can't > >get it working, send me the details. > > You can get it, I seem it is a normal installation: > --- /etc/passwd --- > dummy:*:10003:69::0:0:Dummy:/home/dumy/./:/usr/local/bin/ppplogin > --- /usr/local/bin/ppplogin --- > #!/usr/local/bin/perl > $USER = $ENV{"USER"}; > $COMPORT = ...; # it's a little longer ;-) > $OUT = $USER; or $OUT = $COMPORT; # with a little check between > exec "/usr/sbin/ppp -direct $OUT"; > --- /etc/ppp/ppp.conf --- > default: > disable pap > deny pap > disable chap > deny chap > disable lqr > deny lqr > disable pred1 > deny pred1 > disable passwdauth > enable msext > set log chat phase LCP IPCP > set timeout 300 # after this timeout the connection goes down > > dummy: > set ifaddr mydomain userdomain > enable proxy > ttyd0: > set ifaddr mydomain ttydomain > enable proxy > --- /etc/ttys --- > ttyd0 "/usr/libexec/getty ehh" ansi on insecure > ... > --- /etc/gettytab --- > ehh|EHH Datalink Modem:\ > :np:hw:to#40:ct#30:rt#900:sp#57600:\ > :ic="" +++ "" "\p\p\p\pATH0\r" OK\r ATM0L0E1Q0V1&K3\r OK\r:\ > :ac=RING\r ATA\r CONNECT: > --- /etc/rc.serial --- > modem() { > ci=$1; shift > co=$1; shift > for i in $* do > comcontrol /dev/tty$ci$i dtrwait 60 drainwait 10 > stty stty stty stty done > --- /dev --- > tunx ..., cuax ..., ttydx ... > --- snip end --- > > >There's info in the FAQ > > > > http://www.freebsd.org/FAQ/userppp.html > > > >about what log levels to set etc. > > I read it bevor. Logging is Ok. > Log-Level is not the same as Function-Level, or? ;-) > But PPP doesn't receive the line down to terminate the process. Can you send me a copy of your log file, with the following settings: set log chat connect command phase lcp ipcp ccp debug We should be able to see if the CD detection routine is being called correctly. You must also make sure that your modem doesn't "fake" carrier. It would be good if you could indicate when carrier was actually lost too. Thanks. [.....] > Thanks for helping. > Sigi. > -- Brian , , Don't _EVER_ lose your sense of humour....