LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Shutdown

[ILUG] Shutdown

Lance Dryden lkd-ilug at sky-haven.net
Fri Feb 11 14:27:56 GMT 2011


On 02/11/2011 10:03, Ger Hooton wrote:
> Hi all,
> Q1: How can I find out how a machine was shutdown, was it from a
> command, power on/off button, pulling out the power lead? I have look
> in /var/log/messages and I see "shutdown: shutting down for system halt"
> Where can I get more details?

A1: that's "init 0" or "shutdown -h $(sometime)".

> Q2: How can I prevent non privileged users from doing a shutdown or
> restart

Others have already answered pretty thoroughly, but my answer:

A2: Have no users on the system that accept interactive logins during 
normal operation, from anywhere.  Have no processes that can be tricked 
into running arbitrary commands, particularly as UID0.

   Cheers,
   Lance Dryden


More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell