Linux log problems.

"Michal Kaczorowski" (mikacz@interweb.com.pl)
Thu, 5 Aug 1999 09:45:20 +0200


>> Thank you for answer.
>> I need my wtmp to count working time of users (last).
>
>Ummm, well, then wtmp will grow.

I try to explain.
I use Cyclades for 3 years on 2 serwers.
One use uugetty to control modem ports and every think is OK.
On other one (RH 5.2) I set mgetty to control modems and I notice then my
wtmp grove, and grow.

[root@zefir log]# strings wtmp | more
ttyC22
ttyC26
LOGIN
DIRECT
ttyC22
LOGIN
DIRECT
ttyC26
ttyC21
LOGIN
DIRECT
ttyC22
ttyC26
LOGIN
DIRECT

This strings have no last information (no host, username ...) !!!
On second serwer (which works properly):

[root@grom log]# strings wtmp | more
7kfp
ttyC0
ttyC0
ttyC0
7btizet
ttyC0
tizet
ttyC0
ttyC1
7kfp
ttyC1
ttyC1
ttyC0
7kfp
ttyC0
ttyC0
ttyC0


I set debug 0 in mgetty.config - what can I do to get only 'last'
infermation to wtmp
(no this rubbish).
This only happen on ports where there are leased line modems (dump).
Mayby mgetty try to send any string and it doesen't receive answer ?
I set /etc/inittab

d22:345:respawn:/sbin/mgetty -r -D -x 0 ttyC22
I didn't make separate configuration for ttyC22 in mgetty.config

After 15 days I have wtmp = 350 KB (about every 5 second something is added
to this file event somebody just logon or only works using leased line port)

Thank for help

MIchal K.