SUMMARY: Sol 8 : No utmpx entry. no logins possible
2007-12-25 3:27:00
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
Comments
Got something to say?
You must be logged in to post a comment.

