very short authentication timeout for Lubuntu shutdown

Bug #1132693 reported by RüdiCoerdt
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
lxsession (Ubuntu)
Fix Released
Undecided
Julien Lavergne

Bug Description

Dear audience,

when trying to shutdown the system from the Lubuntu "Logout" menu item, a dialog pops up telling me that "System policy prevents stopping the system when other users are logged in. Authentication is needed to perform this action".

Fine, so far.

But, after 5 seconds, the dialog disappears, not giving me the chance to enter my password.

I could trace that down to polkit action "consolekit stop-multiple-users" and the lxsession-logout program, but then I'm lost. I can't see where the timeout can be increased.

When I logout all sessions on the system, the shutdown takes place immediately without authentication needed.
When I do other tasks, e.g. system updates, authentication dialogs come up and stay forever, long enough to enter passwords.

Description: Ubuntu 12.10
Release: 12.10

Tags: bot-comment
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1132693/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
RüdiCoerdt (ruediger-coerdt) wrote :

Did as has been layed out in https://wiki.ubuntu.com/Bugs/FindRightPackage. Hope this helps.

affects: ubuntu → lxsession (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in lxsession (Ubuntu):
status: New → Confirmed
Revision history for this message
Tobias Richter (tsr-ubuntu) wrote :

lxsession-logout waits 2s for a reply from dbus from the shutdown/reboot request. That does not leave a lot of time to enter your password.

Patch to increase time to 6--- lxsession-0.4.6.1.orig/lxsession-logout/dbus-interface.c
+++ lxsession-0.4.6.1/lxsession-logout/dbus-interface.c
@@ -32,7 +32,7 @@ static struct {
     DBusConnection * connection; /* Handle for connection */
 } dbus_context;

-enum { DBUS_TIMEOUT = 2000 }; /* Reply timeout */
+enum { DBUS_TIMEOUT = 60000 }; /* Reply timeout */

 /* FORWARDS */
 gboolean dbus_ConsoleKit_CanStop(void);
0s:

Revision history for this message
Julien Lavergne (gilir) wrote :

Thanks for the bug report and the proposed fix. I commit it to lxsession git for a bit of testing, and to check if there is no side effects for this change.

Changed in lxsession (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Julien Lavergne (gilir)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxsession - 0.4.9.2~git20130310-0ubuntu1

---------------
lxsession (0.4.9.2~git20130310-0ubuntu1) raring; urgency=low

  * New upstream snapshot (git e352998aa8), including only bug fixes.
  * debian/patches:
   - 90_logout_dbus_timeout.patch: From upstream, increase the dbus timeout.
     (LP: #1132693).
 -- Julien Lavergne <email address hidden> Sat, 13 Apr 2013 08:33:00 +0200

Changed in lxsession (Ubuntu):
status: In Progress → Fix Released
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.