Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
1  
@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

 
discard

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

Browse other questions tagged or ask your own question.