I use Ubuntu and Kubuntu. I have a cron-job that is run daily on each laptop in the household. The cron job can sometimes take a while to complete (30 mins or so). The cron job is run as root.
How do I prevent users from shutting down the system, while the cron job is running? Actually I would like to prevent them from: Logging out, Shut down or Reboot.
EDIT: I care about users logging out because Network Manager takes down wifi upon logout. This interrupts the cron job.