[clue-tech] re: Disabling shutdown.
David Rudder
david at reliableresponse.net
Thu Aug 7 12:05:23 MDT 2008
I have needed to prevent an inquisitive 3 year old from shutting down my
servers. He likes hitting buttons. Actually, I like him hitting
buttons...just not the power button on my server :)
I /etc/acpi/actions/power.sh. It disabled the easy push-to-restart. You
can still do a hard power-off by holding the button for 5 seconds, but
it prevents accidental restarts. I don't have the file on me, but if
you'd like I can send it to you tonight, if you'd like.
I don't know if any software systems (KDE, gnome, etc) use the ACPI
infrastructure for shutting down.
-Dave
clue-tech-request at cluedenver.org wrote:
> So I do backups on my desktop and sometimes have trouble with users
> shutting it down while they're running.
>
> When I asked here before the idea of renaming or chmod -x on the
> shutdown command was suggested and that works pretty well, at least
> against the KDE "turn off" button. Anyone know if there are commands
> that halt the system that bypass shutdown?
>
> I'd also like to give the user some feedback (and even better log them
> out after). I can script that with zenity (oh, and without zenity if
> they're in text mode, and autodetect!!) and the backups can swap
> shutdown for my script.
>
> But maybe these fancy modern desktops already provide a way to send
> system messages to users, and disable shutdowns, that would be less work
> to maintain? Perhaps in KDE it would be with dcop.
>
> I guess that if I want cross-desktop it's a code it yourself deal. So I
> won't complain if it's desktop-specific if it's built-in.
>
> Anyone have any good ideas?
>
> Dave
More information about the clue-tech
mailing list