PDA

View Full Version : reboot, shutdown and suspend under XFCE4 wothout priveleges for root


minimike
August 14th, 2010, 04:12
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.

<!-- Poweroff from XFCE4 -->
<policy group="wheel">
<allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
</policy>


any suggestions

cheers Darko

minimike
August 14th, 2010, 04:58
I have found an solution :D

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



<?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.

graudeejs
August 14th, 2010, 07:07
http://forums.freebsd.org/showthread.php?t=16916