reboot, shutdown and suspend under XFCE4 wothout priveleges for root

Hello

I don't know where I have to search. I am using FreeBSD 8.1, XDM and XFCE4. Now I am searching a solution to shutdown, reboot and suspend the Notebook without priveleges for root under XFCE4.
I have rembered me on Linux on an entry in the /etc/dbus-1/system.d/hal.conf. I have tested it, but it doesn't works.
Code:
   <!-- Poweroff from XFCE4 -->
   <policy group="wheel">
   <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
   </policy>

any suggestions

cheers Darko
 
solved

I have found an solution :D

In /usr/local/etc/PolicyKit/PolicyKit.conf write

Code:
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">

<!-- See the manual page PolicyKit.conf(5) for file format -->

<config version="0.1">
    <match user="root">
	<return result="yes"/>
    </match>
    <define_admin_auth group="wheel"/>

    <match action="org.freedesktop.hal.power-management.shutdown">
        <return result="yes"/>
    </match>
    <match action="org.freedesktop.hal.power-management.reboot">
        <return result="yes"/>
    </match>
    <match action="org.freedesktop.hal.power-management.suspend">
        <return result="yes"/>
    </match> 
    <match action="org.freedesktop.hal.power-management.hibernate">
        <return result="yes"/>
    </match>
</config>

All Buttons in XFCE4 will working :)
But hibernate und suspend doesnt works with my Notebook and FreeBSD :( Maybe I can get help in another Thread.
 
Back
Top