LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-15-2024, 05:16 AM   #1
alex0009
LQ Newbie
 
Registered: Mar 2024
Posts: 8

Rep: Reputation: 0
Ubuntu, last logs


Hi All.
Here is terminal output after "last"

Code:
alex     tty2         tty2             Sun May 29 14:34 - down  (20+15:14)
reboot   system boot  5.13.0-44-generi Sun May 29 14:34 - 05:48 (20+15:14)
alex     tty2         tty2             Sun Mar 27 11:54 - down  (63+02:38)
reboot   system boot  5.13.0-35-generi Sun Mar 27 10:29 - 14:33 (63+04:03)
alex     tty2         tty2             Sat Mar 12 19:21 - crash (14+14:08)
reboot   system boot  5.13.0-35-generi Sat Mar 12 19:20 - 14:33 (77+18:12)
alex     tty2         tty2             Wed Feb 23 08:34 - crash (17+10:46)
reboot   system boot  5.13.0-30-generi Mon Jan 10 05:07 - 14:33 (139+08:25)
alex     tty2         tty2             Sun Feb 20 15:42 - crash (-41+10:34)
reboot   system boot  5.13.0-28-generi Sun Feb 20 15:42 - 14:33 (97+21:51)
alex     tty2         tty2             Sun Feb 20 15:36 - crash  (00:05)
What scenarios can you suggest other than aliens if:
- This is not my computer, but I have it now, and line
Code:
reboot   system boot  5.13.0-35-generi Sat Mar 12 19:20 - 14:33 (77+18:12)
is the date and time when I opened the laptop lid for the first time, I had a password, since I am a relative of the owner of the computer.
Please pay attention to line
Code:
reboot   system boot  5.13.0-30-generi Mon Jan 10 05:07 - 14:33 (139+08:25)
,
where there is a strange date. Mainly I'm interested in how such a record with such a date could appear (except for aliens). Any other scenarios are acceptable, both with the participation of the owner of the computer, and with the participation of a neighbor while the owner was sleeping. Let me remind you that I am not the owner of the computer, but the interested party- relative of the owner.
Any opinions are welcome.
 
Old 03-15-2024, 05:00 PM   #2
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 774

Rep: Reputation: 243Reputation: 243Reputation: 243
All the crashes indicate the system is not stable. It's possible the time got messed up due to any number of reasons, such as a flakey ntpd, a garbed config file for said, misuse of "date" or "hwclock", or a failing battery. When the battery was replaced, it started working correctly again. The aliens explaination sounds more fun though.
 
Old 03-16-2024, 02:29 AM   #3
alex0009
LQ Newbie
 
Registered: Mar 2024
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jayjwa View Post
All the crashes indicate the system is not stable. It's possible the time got messed up due to any number of reasons, such as a flakey ntpd, a garbed config file for said, misuse of "date" or "hwclock", or a failing battery. When the battery was replaced, it started working correctly again. The aliens explaination sounds more fun though.
Ok, accepted. But how can the absence of an authorized login be explained by this strange date?
After all, always after the "reboot"- user , the next line is the authorized login. Or am I missing something?
 
Old 03-16-2024, 04:55 AM   #4
lvm_
Member
 
Registered: Jul 2020
Posts: 926

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
These crashes are not necessarily crashes. In the output of last 'crash' means that there is a login event in wtmp but no corresponding logout event which may be caused by any kind of improper shutdown. BTW the better way to examine wtmp is utmpdump, it gives more detail. Examining /var/log/syslog or systemd journal is even better.
 
Old 03-16-2024, 12:27 PM   #5
alex0009
LQ Newbie
 
Registered: Mar 2024
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lvm_ View Post
BTW the better way to examine wtmp is utmpdump, it gives more detail. Examining /var/log/syslog or systemd journal is even better.
Unfortunately, nothing new. There is no data here for such an ancient period.

We see the "reboot"-user, but we don’t see the login. Maybe single-user login or another login mode? What options?

Last edited by alex0009; 03-16-2024 at 12:40 PM.
 
Old 03-18-2024, 08:42 AM   #6
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,795

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
Obviously there was a big leap backwards in time. Only this can explain the -41 days uptime.

Code:
alex     tty2         tty2             Sun Feb 20 15:42 - crash (-41+10:34)
reboot is not a user. The system simply makes an entry when it boots.

Last edited by MadeInGermany; 03-18-2024 at 10:01 AM.
 
Old 03-18-2024, 08:51 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,852

Rep: Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310
yes, reboot is not a user, just a marker.
The times are really strange. I think you need to check the logs. It jumped back and forth 41 days and also crashed several times. Extra heat, aliens, dead battery or the neighbor's cat.
 
Old 03-18-2024, 01:48 PM   #8
alex0009
LQ Newbie
 
Registered: Mar 2024
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pan64 View Post
I think you need to check the logs.
A lot of time has passed since then, there are simply no syslogs and others
If someone suggested, for example, using the commands find, ls and others, using a certain mask, to look for certain files that could draw unambiguous conclusions, then that would be great.

2 years ago, there was an opportunity, and I searched through the find for files with different attributes (creation, modified, changed, etc.), during this interesting period. But I don’t have enough knowledge to draw conclusions.

Last edited by alex0009; 03-18-2024 at 02:07 PM.
 
Old 03-19-2024, 01:39 AM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,852

Rep: Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310
in that case I think you need to wait for the next visit of those aliens.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Get first day of last month and last day of last month in bash xowl Linux - Software 18 02-09-2017 09:49 AM
Back up logs file and create a script showing the backed up logs and the running logs Billy_6052 Programming 5 12-13-2014 02:32 AM
automatic mail of "Last User Login Logs" & "AIX Logs" nishith AIX 3 12-04-2009 12:42 PM
Ubuntu logs on, then logs back off generallee5686 Ubuntu 0 10-20-2005 01:11 PM
Apache logs - ???Linux logs??? mylo2003 Linux - General 3 08-07-2003 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration