Author Topic: PolicyKit.conf - access other partitions as user (Solved)  (Read 338 times)

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
PolicyKit.conf - access other partitions as user (Solved)
« on: May 03, 2010, 03:49:43 AM »
Hi,

After I reconfigured the uid/gid in PCLinuxOS the way Old-Polack explained me to do here, I found out I was not allowed to access my other partitions, from within PCManFM. So I used the error messages to reconfigure the PolicyKit.conf file, and here is how it looks now (I put colors on the lines I added)

Quote
<?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 action="org.freedesktop.hal.storage.mount-removable">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.storage.mount-removable">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.storage.mount-fixed">
<return result="yes"/>
</match>

<match action="hal-storage-mount-fixed-extra-options">
<return result="yes" />
</match>
<match action="hal-storage-mount-removable-extra-options">
<return result="yes" />
</match>
<match action="org.freedesktop.hal.power-management.lcd-panel">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.power-management.cpufreq">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.power-management.shutdown">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.power-management.shutdown-multiple-sessions">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.power-management.reboot">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.power-management.reboot-multiple-sessions">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.power-management.set-powersave">
<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>
<match action="org.freedesktop.hal.power-management.light-sensor">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.power-management.keyboard-backlight">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.storage.mount-fixed.auth_admin_keep_always">
<return result="yes"/>
</match>

</config>


Now I can access all theses partitions as user. I didn't search further about the many options that can be used according to the type environment where you use the machines : at home or at work, with other people... and so on.

The docs to refer to for this matter are theses:
http://hal.freedesktop.org/docs/PolicyKit/

http://hal.freedesktop.org/docs/PolicyKit/PolicyKit.conf.5.html

Regards,
Mélodie

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode