[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

temporarily disable shutdown



Hi,

how can I temporarily disable shutdown or reboot? 

My use case is the following: I create a file /tmp/NO_SHUTDOWN. If that file exists, a shutdown or reboot should not be possible. 
I have molly-guard installed and a script in  /etc/molly-guard/run.d/ tests the existence of that file and prevents shutdown/reboot on the commandline.

But a user in KDE can still do reboot/shutdown from either KDE or even KDM. How can I prevent that with a file /tmp/NO_SHUTDOWN.

Thank you for your help
Matthias


Reply to: