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.
allow_active
tag is set to "auth_admin_keep". Yet it still shuts me off. Just in case, I compared that file with the one I have on a 13.04 system and they are the same... so I guess it's not just that. Any other idea? Or should I just put "no" in there? (it seems to me that it should still work as before... so there must be something else that bypasses this policy?) – Alexis Wilke Feb 22 '14 at 05:32/etc/motd -> /var/run/motd
and it worked again. Could there be such a symbolic link lost in this case too? – Alexis Wilke Feb 23 '14 at 05:28