[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Logging out from serial login



Hi all,

I've been setting up a ppp-over-null-modem connection for a friend's Palm, and
its working great, except for one point.

I've created a user called 'palm', with shell /etc/ppp/ppplogin which looks like
this:

#!/bin/sh
mesg n
stty -echo
/usr/bin/sudo /usr/sbin/pppd nodetach passive local noauth crtscts 192.168.1.1:192.168.1.2

I start the connection from the Palm then run 'getty -L 57600 ttyS0. The Palm
connects and everything works fine.

When I disconnect from the Palm, getty ends as expected and pppd shuts down,
but for some reason the 'palm' user doesn't release ttyS0. The permissions are
still set to

crw-------    1 palm     dip        4,  64 Apr 30 09:45 /dev/ttyS0

when it should be

crw-rw----    1 root     dialout    4,  64 Apr 30 09:50 /dev/ttyS0

Also, fingering 'palm' says

On since Sun Apr 30 09:45 (EST) on ttyS0

Why doesn't the user get logged out?

Regards,
Rob.

Attachment: pgpu8Uiatzpya.pgp
Description: PGP signature


Reply to: