I upgraded to saucy not too long ago and now an X11 user can shutdown even if I'm connected to that computer via ssh.
Before the upgrade, an ssh connection would prevent the X11 users from shutting down (at least with the regular Shutdown menu option.)
How can I re-establish that feature so if I am doing an upgrade the X11 users cannot just turn off their computer on me?
Update:
Look at the accepted answer on Prevent machine from sleeping when SSH connections are on which includes a solution using systemd-inhibitor which probably the way to go. I'm not too sure how you can integrate that functionality in SSH but that would be the modern way (since 15.04). The inhibitor can prevent sleep, shutdown, reboot, hibernation... you name it.