Silently fails to restart shutdown without message when user logged in on virtual console

Bug #1121193 reported by Frederik Himpe
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
LightDM GTK Greeter
New
Unknown
lightdm-gtk-greeter (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When a user is logged in on a virtual console (tty1), then choosing restart or shutdown in lightdm greeter does not restart or shut down the system. I would expect a message to be shown stating that restart/shutdown is not allowed because a user is logged in on tty1.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: lightdm-gtk-greeter 1.5.0-0ubuntu1
ProcVersionSignature: Ubuntu 3.8.0-5.10-generic 3.8.0-rc6
Uname: Linux 3.8.0-5-generic x86_64
ApportVersion: 2.8-0ubuntu4
Architecture: amd64
Date: Sun Feb 10 15:29:21 2013
InstallationDate: Installed on 2013-02-09 (0 days ago)
InstallationMedia: Xubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130209)
MarkForUpload: True
SourcePackage: lightdm-gtk-greeter
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Frederik Himpe (fhimpe) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in lightdm-gtk-greeter (Ubuntu):
status: New → Confirmed
Revision history for this message
Ernst Persson (ernstp) wrote :

Try modifying this file:
--- a/usr/share/polkit-1/actions/org.freedesktop.consolekit.policy
+++ b/usr/share/polkit-1/actions/org.freedesktop.consolekit.policy
@@ -23,7 +23,7 @@ Policy definitions for ConsoleKit
     <message>System policy prevents stopping the system when other users are logged in</message>
     <defaults>
       <allow_inactive>no</allow_inactive>
- <allow_active>auth_admin_keep</allow_active>
+ <allow_active>yes</allow_active>
     </defaults>
   </action>

@@ -41,7 +41,7 @@ Policy definitions for ConsoleKit
     <message>System policy prevents restarting the system when other users are logged in</message>
     <defaults>
       <allow_inactive>no</allow_inactive>
- <allow_active>auth_admin_keep</allow_active>
+ <allow_active>yes</allow_active>
     </defaults>
   </action>

Sean Davis (bluesabre)
Changed in lightdm-gtk-greeter:
status: New → Confirmed
Sean Davis (bluesabre)
Changed in lightdm-gtk-greeter:
importance: Undecided → Unknown
status: Confirmed → Unknown
Changed in lightdm-gtk-greeter:
status: Unknown → New
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.