I’m trying to setup a new shell server running Ubuntu 14.04 LTS, but I’m having a problem with the GUI aspect. Any window manager I try, there is an option to Leave that not only has switch user and log out as an option but also shutdown and restart the computer.
I’ve tested this and shutdown / restart from a GUI work for an ordinary non-priviledged user.
I tried to create an polkit-1 policy to stop this, this worked on Debian but Ubuntu seems to blissfully ignore it. If anybody has solved this problem please let me know. I’ve done many web searches and so far none of the solutions I’ve found work.