From: Simon L (sloewenthal@gemini.edu)
Date: Thu May 27 2004 - 14:05:10 EDT
Thanks all and sundry who responded so quickly.
My commands;
echo > /var/adm/wtmpx ; echo > /var/adm/utmpx
Introduced a new line into the file. I had forgotten that.
Some methods that work are:
1.e
# cat /dev/null > /var/adm/wtmpx
# cat /dev/null > /var/adm/utmpx
2.
# > /etc/utmpx
# > /etc/wtmpx
3.
# cat /dev/null > utmpx
# cat /dev/null > wtmpx
Or a more elbaorate method from David Foster such as;
4.
#!/bin/csh -f
foreach f ( utmpx wtmpx )
echo "fixing $f ..."
/usr/lib/acct/wtmpfix /var/adm/$f > /tmp/$f
cp /var/adm/$f /var/adm/${f}.o
mv -f /tmp/$f /var/adm/$f
end
exit 0
thanks goes out to Jon Godfrey, David Foster, Julian John, David Harrington
and Musa Williams.
Regards,
Si.
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.691 / Virus Database: 452 - Release Date: 26/05/2004 _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:28:44 EDT