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
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.
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!