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


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/mf6odd$lje$1...@ger.gmane.org

Reply via email to