LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-16-2014, 05:33 AM   #1
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Rep: Reputation: Disabled
when linux was turned on and when it went shutdown


i want to know when my pc went turned off and who did it and when it was turned on. i am using centos 6. i used last command with -x. here is the output.

Code:
last -x
root     pts/1        alps.gai.net     Thu Jan 16 16:53   still logged in   
root     pts/2        192.168.50.32    Thu Jan 16 16:49   still logged in   
root     pts/1        alps.gai.net     Thu Jan 16 14:55 - 16:50  (01:54)    
root     pts/1        alps.gai.net     Thu Jan 16 14:45 - 14:54  (00:09)    
root     pts/0        192.168.50.32    Thu Jan 16 12:14   still logged in   
runlevel (to lvl 5)   2.6.32-279.14.1. Thu Jan 16 04:52 - 17:03  (12:10)    
reboot   system boot  2.6.32-279.14.1. Thu Jan 16 04:52 - 17:03  (12:10)    
root     pts/0        192.168.50.32    Wed Jan 15 14:59 - 15:31  (00:32)    
root     pts/1        192.168.50.32    Mon Jan 13 16:10 - 16:17  (00:06)    
root     pts/0        alps.gai.net     Mon Jan 13 15:34 - 20:32  (04:58)    
root     pts/0        alps.gai.net     Mon Jan 13 12:13 - 13:29  (01:16)
 
Old 01-16-2014, 08:57 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,744

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
What cron job ran around 4am? Are you running a different kernel than you were yesterday?
Do you have an automatic update script that runs?
 
Old 01-16-2014, 09:31 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,785

Rep: Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159
Quote:
Originally Posted by sachin.davra View Post
i want to know when my pc went turned off and who did it and when it was turned on. i am using centos 6. i used last command with -x. here is the output.

Code:
last -x
root     pts/1        alps.gai.net     Thu Jan 16 16:53   still logged in   
root     pts/2        192.168.50.32    Thu Jan 16 16:49   still logged in   
root     pts/1        alps.gai.net     Thu Jan 16 14:55 - 16:50  (01:54)    
root     pts/1        alps.gai.net     Thu Jan 16 14:45 - 14:54  (00:09)    
root     pts/0        192.168.50.32    Thu Jan 16 12:14   still logged in   
runlevel (to lvl 5)   2.6.32-279.14.1. Thu Jan 16 04:52 - 17:03  (12:10)    
reboot   system boot  2.6.32-279.14.1. Thu Jan 16 04:52 - 17:03  (12:10)    
root     pts/0        192.168.50.32    Wed Jan 15 14:59 - 15:31  (00:32)    
root     pts/1        192.168.50.32    Mon Jan 13 16:10 - 16:17  (00:06)    
root     pts/0        alps.gai.net     Mon Jan 13 15:34 - 20:32  (04:58)    
root     pts/0        alps.gai.net     Mon Jan 13 12:13 - 13:29  (01:16)
Ok, so it's telling you that the system booted. Did you try to check ANY of the log files? User histories? Typing "last" won't tell you anything about why the system rebooted. And EVERYONE logs in as root, even over the network?? That is a VERY BAD THING...network root logins should be disabled, and the ONLY place root should be able to log in, is on the system console. Everyone else has to log in as themselves, and they can sudo/su as needed. If your systems administrator had followed ANY of the very basic system security basics, you'd know WHO logged in, and can go from there.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
linux turned off by itself. Suspect over heating centguy Linux - Software 10 09-02-2010 09:49 PM
Where I can locate Shutdown log for Linux Shutdown (RHL 5.1-2.6.18-53.el5PAE) msmallya Linux - General 2 04-23-2010 01:56 AM
HELP! shutdown doesn't totally turned off struggled_newbie Linux - Newbie 10 12-18-2009 12:50 AM
linux turned itself on? imaniman Linux - General 6 02-04-2008 02:10 AM
Computer doesn't get turned off after shutdown f430 Linux - General 1 05-20-2006 07:33 AM


All times are GMT -5. The time now is 10:59 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration