While logged in as a sudo
user, click the right top power icon, then select and click Shutdown
menu, it comes up with a dialog asking if I want to close all programs. The dialog has two options: restart or shutdown. Choose either one logs me out. Syslog
has the following line about restart:
WARNING: Unable to restart system: Authorization is required
This happened after I installed NTP and some OpenStack packages while working in a prototype project. My Ubuntu's software is up to date as of this writing.
Anyone encountered the same problem in 12.04?
Sadly this is a known bug in (probably)
consolekit
LP #838792The workaround for the time is
This should solve your problem: https://www.grendelman.net/wp/policykit-adventures/
Following these websites information: http://www.freedesktop.org/software/polkit/docs/0.105/pklocalauthority.8.html and https://bugs.launchpad.net/ubuntu/+source/policykit/+bug/1033305
Seems to have resolved our problems with the lightdm shutdown button not working for all users on Ubuntu 12.04.3 LTS (GNU/Linux 3.11.6-031106-generic x86_64)
Then add the following lines to the file.
Then enter
service lightdm restart
and/or a reboot of the machine is needed. Tried before logging into the machine and then again after someone logged in.My workaround for this annoying little bug is this, I create a launcher with the following:
To Shutdown:
sudo shutdown -h
To Restart:
sudo shutdown -r
You will then be asked your super user password. I put this launcher on the desktop and use that until the bug is sorted out.
Maybe the problem is caused by the HSQLDB Server. I just filled a bug about it:
https://bugs.launchpad.net/ubuntu/+source/hsqldb/+bug/1153856
Workaround:
I had the same troubles - the guilty one was kalarm. After I disabled it, shutdown started to work properly again.
A GUI resolution is to install Cairo-dock from the repository and click on the Shutdown button on that menu to shutdown or restart.
While using the terminal commands work. For some people, having to go to a terminal screen is at least, overly complicated, and also a lot of work.
I've been using this Gui workaround for the past 6 Ubuntu version releases.
This can be installed from the software center or cli: