Ways to prevent accidental shutdowns and reboots in Red Hat Enterprise Linux (RHEL)

Solution Unverified - Updated -


How can I limit my users (root and non-root) from accidentally shutting down or rebooting my servers? I thought I was on a different server. Not paying attention to the "tab" auto-complete of a similar commands, for example the "poweroff" command, when I want to run the EMC utility "powermt" command.

Q1: Are the "/sbin/poweroff", "/sbin/halt", "/sbin/shutdown", and "/sbin/reboot" commands called by other programs?

Q2: Is there already a rpm and/or setting to control this?


Red Hat Enterprise Linux (RHEL) 5
Red Hat Enterprise Linux (RHEL) 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In