You are not logged in.

#1 2007-02-15 16:23:02

picpak
Member
Registered: 2006-12-02
Posts: 89

How does Arch do it?

How does Arch set up the "power" group to shutdown from the Xfce 4.4 quit menu without a password? I've tried replicating this hundreds of times on Ubuntu, but it still asks for my password. After I type it in I get this:

Either the password you entered is invalid, or the system administrator disallows shutting down this computer with your user account.

Even though I'm the only user on this computer. I realize this isn't an Ubuntu forum, but it's really making my head hurt.

Last edited by picpak (2007-02-15 16:23:21)


Regards,
Picpak

Offline

#2 2007-02-15 16:42:14

baze
Member
Registered: 2005-10-30
Posts: 393

Re: How does Arch do it?

power is a group in arch that has the right to use the hal SystemPowerManagement.
take a look at /etc/dbus-1/system.d/hal.conf

  <policy group="power">
    <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
  </policy>

that's the stuff you need to edit on ubuntu to allow your user or group to access it too.
in xfce4.4 the shutdown helper tries if shutdown via hal is allowed. if this is not the case, it tries via sudo as described in the wiki.

Last edited by baze (2007-02-15 16:43:44)

Offline

#3 2007-02-15 17:35:18

picpak
Member
Registered: 2006-12-02
Posts: 89

Re: How does Arch do it?

Now that's easy! Thanks so much.

I had a feeling it was hal.


Regards,
Picpak

Offline

Board footer

Powered by FluxBB