SUMARRY: Problem with Last

From: Tuan-Eng Tan (tetan@uwin.siu.edu)
Date: Tue Mar 31 1998 - 17:15:57 CST


Hi, all

Problem solved. As Peter mentioned, the {ut}tmp[x] files are corrupted. I
emptied all files. Thanks to
 Peter Bestel <peter.bestel@uniq.com.au>
 Systems Admin <sysadmin@lvision.com>

Original question:
> When I issue the last command on the Solaris 2.6 box, I do not see the
> lastest records. (Actually, the latest record last several week ago, and
> there is no new record after that) I checked the utmp, utmpx, wtmp and
> wtmpx, these files are updated each time I login. Any suggestion ?

Date: Tue, 31 Mar 1998 15:08:24 -0800 (PST)
From: Systems Admin <sysadmin@lvision.com>

I noticed that 2.6's syslogd was crashing. I havn't yet found a patch for
this.

Satish

From: Peter Bestel <peter.bestel@uniq.com.au>

Sounds like the file may be corrupted. The tools to read the files will
get a certain ways along and then crap out on a read. Run the following
commands and try logging in:

cd /var/adm
mv lastlog lastlog.old ; mv wtmp wtmp.old ; mv wtmpx wtmpx.old
mv utmp utmp.old ; mv utmpx utmpx.old
touch lastlog utmp utmpx wtmp wtmpx ; chown adm wt*

-- 
Tuan-Eng Tan
Universities Water Information Network
Southern Illinois University at Carbondale



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:35 CDT