Unix/Linux Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

How to know which user has restarted or shutdown the redhat box?

Red Hat


Tags
rebooted, redhat, shutdown, user name

Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 03-25-2013
redhatlbug redhatlbug is offline
Registered User
 
Join Date: Feb 2013
Last Activity: 8 April 2013, 4:24 PM EDT
Posts: 20
Thanks: 7
Thanked 0 Times in 0 Posts
RedHat How to know which user has restarted or shutdown the redhat box?

hi guys!

I like to know which user has rebooted or shutdown a redhat box ?

the thing is wanted to know the exact user name who has done this action, ofcourse an admin privileged user only can do this. from a list of admin privileged user to find the exact one.

i used to go with last command but no user name is showing.

Thanks inadvance Linux
Sponsored Links
    #2  
Old Unix and Linux 03-25-2013
hanson44 hanson44 is offline
Registered User
 
Join Date: Mar 2013
Last Activity: 12 May 2013, 11:33 PM EDT
Posts: 858
Thanks: 18
Thanked 181 Times in 178 Posts
I don't use redhat.

Maybe you can do this with sudo?
Sponsored Links
    #3  
Old Unix and Linux 04-01-2013
maverick_here maverick_here is offline
Registered User
 
Join Date: May 2009
Last Activity: 30 October 2014, 10:43 PM EDT
Location: Hyderabad
Posts: 132
Thanks: 0
Thanked 6 Times in 5 Posts
Sudo

Hi,

The process of shutdown and restart on Linux is denied to a normal user. It can only be done by the super user or a user who has elevated sudo privileges.

Normally, if a your does a restart or shutdown using sudo , it will be logged in /var/log/secure log file.

Quote:
Apr 1 09:50:09 SERVERNAME sudo: USERNAME : TTY=pts/1 ; PWD=/home/USERNAME ; USER=root ; COMMAND=/sbin/shutdown -r now
The Following User Says Thank You to maverick_here For This Useful Post:
redhatlbug (04-03-2013)
    #4  
Old Unix and Linux 04-02-2013
lupin..the..3rd lupin..the..3rd is offline
Registered User
 
Join Date: Jul 2011
Last Activity: 19 February 2015, 4:40 PM EST
Posts: 105
Thanks: 19
Thanked 10 Times in 9 Posts
reboot can be done from local console via three-finger-salute, without even logging in. If it was rebooted this way, there will be no way of identifying the person.
The Following User Says Thank You to lupin..the..3rd For This Useful Post:
redhatlbug (04-03-2013)
Sponsored Links
    #5  
Old Unix and Linux 04-03-2013
redhatlbug redhatlbug is offline
Registered User
 
Join Date: Feb 2013
Last Activity: 8 April 2013, 4:24 PM EDT
Posts: 20
Thanks: 7
Thanked 0 Times in 0 Posts
Thanks for the responses...
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Authentication Failed Dialog Box on Redhat 4.7 redhatuser2012 Red Hat 27 03-28-2012 05:12 PM
errpt SYSTEM SHUTDOWN BY USER thecobra151 AIX 5 02-08-2012 03:34 PM
The user 'sync' and 'shutdown' vistastar Fedora 10 09-30-2011 11:05 PM
Send mail from redhat box to exchange server oguzhantrg Red Hat 1 05-24-2010 03:58 AM
CentOS, Fedora & RedHat in 1 box raybakh Ubuntu 23 10-02-2006 10:02 PM



All times are GMT -4. The time now is 02:09 PM.