Restart/Shutdown functionality broken. Logout is perfomed instead.

Bug #1069457 reported by Aleksandr Panzin
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
PolicyKit
New
Undecided
Unassigned

Bug Description

Restart/Shutdown functionality broken. (Any desktop manager)
Only logout is perfomed instead.

The following work as expected:
sudo init 6
sudo init 0
sudo shutdown -P now
sudo shutdown -r now

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: unity 6.8.0-0ubuntu2
Uname: Linux 3.6.2-030602-generic x86_64
ApportVersion: 2.6.1-0ubuntu4
Architecture: amd64
CompizPlugins: [core,composite,opengl,decor,move,ring,scale,compiztoolbox,scaleaddon,grid,gnomecompat,imgpng,unitymtgrabhandles,regex,mousepoll,resize,place,snap,vpswitch,wall,animation,workarounds,session,expo,ezoom,unityshell]
Date: Sun Oct 21 19:40:57 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120301)
MarkForUpload: True
SourcePackage: unity
UpgradeStatus: Upgraded to quantal on 2012-10-12 (9 days ago)

Revision history for this message
Aleksandr Panzin (jalexoid) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unity (Ubuntu):
status: New → Confirmed
Revision history for this message
misteraph (laporte-raphael) wrote :

Same problem. Fresh Install of Ubuntu 12.10 64bits. I can only reboot and shutdown by command line.

Revision history for this message
misteraph (laporte-raphael) wrote :

I found a workaround here.

https://www.grendelman.net/wp/policykit-adventures/

Create a file /etc/polkit-1/localauthority/50-local.d/usershutdown.pkla

Put his text inside and reboot

[Allow Shutdown]
Identity=unix-user:*
Action=org.freedesktop.consolekit.system.stop-multiple-users
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Allow Restart]
Identity=unix-user:*
Action=org.freedesktop.consolekit.system.restart-multiple-users
ResultAny=yes
ResultInactive=yes
ResultActive=yes

However, I don't known if it is a clean method.

Revision history for this message
Aleksandr Panzin (jalexoid) wrote :

It seems that policykit gets screwed up again on Ubuntu upgrades and installs. This is a recurring issue. All versions to my experience have had issues with screwed up policykit.

no longer affects: unity (Ubuntu)
Revision history for this message
misteraph (laporte-raphael) wrote :

I found this in /var/log/syslog

Oct 23 11:54:56 obelux gnome-session[1311]: WARNING: Unable to restart system: Authorization is required

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.