Date: Thu, 16 Apr 1998 12:51:07 +0200 (CEST) From: martti.kuparinen@sl.sgn.ellemtel.net To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: kern/6318: pppd does not update wtmp on hangup Message-ID: <199804161051.MAA01107@sigurd.sgn.ellemtel.net>
next in thread | raw e-mail | index | archive | help
>Number: 6318 >Category: kern >Synopsis: pppd does not update wtmp on hangup >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 16 04:00:02 PDT 1998 >Last-Modified: >Originator: Martti Kuparinen >Organization: Stockholm Gigabit Network >Release: FreeBSD 2.2.6-STABLE i386 >Environment: Pentium 166, FreeBSD 2.2.6-STABLE (cvsupped and compiled 980414) and two 56k modems. The server accepts PPP-only connections (without any login scripts in the client side, i.e. no getty is involved). The server is running kernel PPP, i.e. pppd, and the version is 2.2.0 according to the log files. >Description: When the user logs out, i.e. disconnects the modem, wtmp is not updated although the pppd in terminated without any errors (see the output from ``last''): reboot ~ Tor 16 Apr 08:37 shutdown ~ Tor 16 Apr 08:37 martti ttyd1 :PPP Tor 16 Apr 08:33 - shutdown (00:03) martti ttyd1 :PPP Tor 16 Apr 08:32 - shutdown (00:05) The logs in /var/log/messages show that the first connection (started at 8:32) lasted only 16 secs, so the logout time should be 08:32. Apr 16 08:32:01 sigurd pppd[3484]: Connect: ppp0 <--> /dev/ttyd1 Apr 16 08:32:02 sigurd pppd[3484]: local IP address 10.0.0.1 Apr 16 08:32:02 sigurd pppd[3484]: remote IP address 10.0.0.101 Apr 16 08:32:17 sigurd pppd[3484]: Modem hangup Apr 16 08:32:17 sigurd pppd[3487]: pppd 2.2.0 started by root, uid 0 Apr 16 08:33:54 sigurd pppd[3487]: Connect: ppp0 <--> /dev/ttyd1 >How-To-Repeat: I have in /etc/ttys the following lines: ttyd0 "/usr/sbin/pppd -detach 115200" unknown on insecure ttyd1 "/usr/sbin/pppd -detach 115200" unknown on insecure All pppd daemons share these settings (/etc/ppp/options): crtscts # Hardware flow control modem # modem line passive # wait for LCP +pap # Use PAP login # Use /etc/passwd in PAP auth # req. authentication netmask 255.255.255.0 # our netmask domain ppp.net # our domain name dns1 10.0.0.1 # our primary DNS server dns2 xxx.xxx.xxx.xxx # our secondary DNS server pppd connected to ttyd0 has also the following address settings (/etc/ppp/options.ttyd0): 10.0.0.1:10.0.0.100 pppd connected to ttyd1 has also the following address settings (/etc/ppp/options.ttyd1): 10.0.0.1:10.0.0.101 >Fix: No known fix at this time. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804161051.MAA01107>