Results 1 to 10 of 22

Thread: Shutdown System Policy Question

Threaded View

  1. #9
    Join Date
    Sep 2008
    Beans
    1,024
    Distro
    Ubuntu Development Release

    Re: Shutdown System Policy Question

    Found something here:

    The easy way around it seems to be to add your users to the group 'users', then create a policykit rule to allow users of that group permission to shut down and another to restart when other users are logged in to the system.

    Code:
    # /var/lib/polkit-1/localauthority/50-local.d/shutdown.pkla
    [system shutdown privs]
    Identity=unix-group:users
    Action=org.freedesktop.consolekit.system.stop-multiple-users
    ResultAny=no
    ResultInactive=no
    ResultActive=yes
    Code:
    # /var/lib/polkit-1/localauthority/50-local.d/restart.pkla
    [system restart privs]
    Identity=unix-group:users
    Action=org.freedesktop.consolekit.system.restart-multiple-users
    ResultAny=no
    ResultInactive=no
    ResultActive=yes
    As the top line of each snippet suggests you want to create these files in '/var/lib/polkit-1/localauthority/50-local.d/' with the names 'shutdown.pkla' and 'restart.pkla', so 'sudo gedit', 'sudo kedit', or whatever editor you prefer.

    If you prefer you can specify individual users who you want to give permission to in the identity line instead of adding them to a group and using the group identity:

    Code:
    Identity=unix-user:fu;unix-user:bar
    Then after the rules are created type:

    Code:
    sudo /etc/init.d/hal restart
    to activate the rules.

    That still leaves the question as to why the system thinks another user is logged in.

    Later, Seeker
    Last edited by seeker5528; November 17th, 2009 at 10:38 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •