~achiang/ubuntu/quantal/casper/bug-855556

Viewing all changes in revision 1043.

  • Committer: Alex Chiang
  • Date: 2012-05-18 22:15:22 UTC
  • Revision ID: achiang@canonical.com-20120518221522-k9u0uugst0w576pu
Grant admin polkit privileges to lightdm user (LP: #855556)

During a live session, the 'ubuntu' user is logged in on every VT. However,
we have:

/usr/share/polkit-1/actions/org.freedesktop.consolekit.policy

        org.freedesktop.consolekit.system.restart-multiple-users
                <allow_active>auth_admin_keep</allow_active>
        org.freedesktop.consolekit.system.stop-multiple-users
                <allow_active>auth_admin_keep</allow_active>

Thus, the shutdown and restart items from the Unity greeter's session
indicator are inhibited.

Those items should work, and we can do so by granting admin privileges to
lightdm / unity-greeter, which allows restart and shutdown from the greeter
screen.

We already grant admin privileges to the default user in the live session,
so allowing the user to shutdown from the live session's greeter screen
should be considered conceptually similar.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: