Resetting WTMP? | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Resetting WTMP?

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-21-2001
cuppjr cuppjr is offline
Registered User
 
Join Date: Feb 2001
Last Activity: 26 February 2001, 8:47 PM EST
Location: Columbus, OH
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Question

When I type last oracle I get dates from Nov 28, 2000 all the way back to the beginning of time it seems. The 11-28-2000 entry states that Oracle is still logged in, but if you type a who, it shows only 1 entry - the currently logged in user (Me as oracle), but I logged in only minutes ago - and the system date shows correct. Why does it not log current users any more? Please advise as soon as possible.
Sponsored Links
    #2  
Old 02-22-2001
98_1LE 98_1LE is offline Forum Advisor  
Registered User
 
Join Date: Dec 2000
Last Activity: 21 May 2012, 6:37 PM EDT
Location: Greater Dallas area
Posts: 405
Thanks: 0
Thanked 3 Times in 3 Posts
To reste the data (on Solaris);
cat /dev/null > /var/adm/wtmp
cat /dev/null > /var/adm/wtmpx
cat /dev/null > /var/adm/utmp
cat /dev/null > /var/adm/utmpx

Note that last, who, w etc. will not return the correct data until a reboot so if possible it is adviseable to do this right before a reboot.
Sponsored Links
    #3  
Old 02-22-2001
cuppjr cuppjr is offline
Registered User
 
Join Date: Feb 2001
Last Activity: 26 February 2001, 8:47 PM EST
Location: Columbus, OH
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Reboot?

Is the only way to get correct data (i.e. dates beyond 11-28-2000) is via a reboot? What would cause this issue to begin with?
    #4  
Old 02-22-2001
98_1LE 98_1LE is offline Forum Advisor  
Registered User
 
Join Date: Dec 2000
Last Activity: 21 May 2012, 6:37 PM EDT
Location: Greater Dallas area
Posts: 405
Thanks: 0
Thanked 3 Times in 3 Posts
You can probably go edit the files listed above and just restart utmpd. I have never tried this though. Whats specific OS are you running?
Sponsored Links
    #5  
Old 02-22-2001
cuppjr cuppjr is offline
Registered User
 
Join Date: Feb 2001
Last Activity: 26 February 2001, 8:47 PM EST
Location: Columbus, OH
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Alpha box
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
wtmp output Duffs22 Red Hat 1 05-23-2012 05:08 PM
Clear wtmp x_adm AIX 2 04-23-2010 09:10 AM
wtmp file lo-lp-kl AIX 4 06-02-2008 01:32 PM
wtmp dsharples UNIX for Dummies Questions & Answers 2 11-17-2003 07:06 AM
Need Wtmp Reader pgold1 UNIX for Dummies Questions & Answers 1 12-13-2000 02:23 AM



All times are GMT -4. The time now is 05:08 AM.