DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 17th May 2008
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default Polkit Shutdown for XFCE in Freebsd 7.0

My prior post is the old forum fell victim to bad timing when I posted during the great migration.

FreeBSD 7 stable running Xfce. It appears that user shutdown and reboot have been moved from sudo to PolicyKit. The documentation on this is a little sparse (man PolicyKit states it remains to be written) at this time.

I think I have the general idea but am failing with the syntax. Could someone post their PolicyKit.conf code that enable user shutdown/reboot?

Thanks in advance
Reply With Quote
  #2   (View Single Post)  
Old 18th May 2008
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

At the risk of being accused of bumping my thread here is my PolicyKit.conf.
Note that automount for removable drives functions:

Code:
<config version="0.1">
  <match action="org.freedesktop.hal.power-management.shutdown">
    <match usr="jsh">
      <return result="yes"/>
    </match>
  </match>
  <match action="org.freedesktop.hal.power-management.reboot">
    <match user="jsh">
      <return result="yes"/>
    </match>
  </match>
  <match action="org.freedesktop.hal.storage.mount-removable">
    <match user="jsh">
      <return result="yes"/>
    </match>
  </match>
    <match user="root">
        <return result="yes"/>
    </match>
    <define_admin_auth group="wheel"/>
</config>
Any help appreciated
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: Lightest XFCE - Making XFCE lighter and faster vermaden Guides 27 2nd September 2010 12:24 PM
shutdown message Mr-Biscuit FreeBSD General 1 16th November 2008 11:59 PM
strange behaviour after improper shutdown karri FreeBSD General 1 15th October 2008 03:08 PM
Awant Window Navigator for Xfce under FreeBSD? daemonFromHeaven FreeBSD Ports and Packages 11 13th September 2008 10:13 AM
Shutdown problems radtek FreeBSD General 11 13th September 2008 12:42 AM


All times are GMT. The time now is 08:39 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick