Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My flatmates and I are sharing an Ubuntu (natty) based Media Centre PC that among other things runs MythTV to schedule and record TV.

I'm now looking for a convenient solution to prevent anybody from shutting down the system when one of us has scheduled a recording or has any other background job running that requires the PC to stay on.

It's not necessary to actually check if MythTV has anything scheduled, I'd much rather just be able to leave display a customisable message to anyone who tries to shut down the computer, with the option to ignore the warning ideally requiring some sort of input (click or better yet some keyboard input).

share|improve this question

migrated from Aug 2 '11 at 7:06

This question came from our site for professional and enthusiast programmers.

Shouldn't you just create a user without sudo privileges? Thus not allowing them to restart/shutdown the machine. – Nicholi Aug 2 '11 at 17:08
This sounds like a communication issue. I would just leave a note on the machine somewhere (preferably the monitor) telling people not to shut it off. – new123456 Aug 2 '11 at 17:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.