Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

Sometime I run maintenance scripts in a machine. I want to temporally block users from been able to shuting-down the system while this task are running. How can I achieve this?

share|improve this question
What do you mean by "block shutdown"? – Evandro Silva Nov 5 '12 at 12:01
change the permission chmod -x /sbin/shutdown – devav2 Nov 5 '12 at 12:08
@devav2 I think the OP is asking about the shutdown icon. This can and should be runnable with root permissions. – hexafraction Nov 5 '12 at 12:15
@ObsessiveSSOℲ Yeah. I'm not very clear about what he is looking for. – devav2 Nov 5 '12 at 12:27
When running script update-manager – Dela Nov 5 '12 at 12:28

Your Answer


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

Browse other questions tagged or ask your own question.