Before you simply assume "oh, fix your PolicyKit stuff" let me explain..
I -can- mount the very same media in gnome...
An error occurred while accessing 'Windows 7', the system responded:
my user is in group wheel..
Which means he should be designated as admin.. so he should get asked for a password to do -whatever-
This file is actually located in /usr/local/share/PolicyKit/policy (which is symlinked into the kde4 heirarchy) - so it should either -ask for my admin password, which it does -not do!- OR it should simply mount the media.
Now.. here is where things get fun! If I log out of KDE, and into Gnome 2.30 - everything mounts correctly.. and then I can log out, and back into KDE.. and it'll work right.. and I will even be able to unmount the drives that I mounted under gnome..
But it wont mount them back..
And, for good measure: ck-list-sessions from Konsole shows:
I -can- mount the very same media in gnome...
An error occurred while accessing 'Windows 7', the system responded:
Code:
org.freedesktop.Hal.Device.PermissionDeniedByPolicy: org.freedesktop.hal.storage.mount-fixed no <-- (action, result)
my user is in group wheel..
cat /usr/local/etc/PolicyKit/PolicyKit.conf
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"/>
</config>
Which means he should be designated as admin.. so he should get asked for a password to do -whatever-
cat /usr/local/kde4/share/PolicyKit/policy/org.freedesktop.hal.storage.policy
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
<!--
Policy definitions for HAL's drives/media mechanims.
Copyright (c) 2007 David Zeuthen <david@fubar.dk>
HAL is licensed to you under your choice of the the Academic Free
License Version 2.1, or the GNU General Public License version 2. Some
individual source files may be under the GPL only. See COPYING for
details.
-->
<policyconfig>
<action id="org.freedesktop.hal.storage.mount-fixed">
<description>Mount file systems from internal drives.</description>
<message>System policy prevents mounting internal media</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep_always</allow_active>
</defaults>
</action>
<action id="org.freedesktop.hal.storage.mount-removable">
<description>Mount file systems from removable drives.</description>
<message>System policy prevents mounting removable media</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
<action id="org.freedesktop.hal.storage.unmount-others">
<description>Unmount file systems mounted by other users.</description>
<message>System policy prevents unmounting media mounted by other users</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep_always</allow_active>
</defaults>
</action>
<action id="org.freedesktop.hal.storage.eject">
<description>Eject removable media.</description>
<message>System policy prevents ejecting removable media</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
<action id="org.freedesktop.hal.storage.crypto-setup-fixed">
<description>Set up decryption for encrypted fixed storage devices.</description>
<message>System policy prevents accessing encrypted fixed media</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep_always</allow_active>
</defaults>
</action>
<action id="org.freedesktop.hal.storage.crypto-setup-removable">
<description>Set up decryption for encrypted removable storage devices.</description>
<message>System policy prevents accessing encrypted removable media</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
</policyconfig>
This file is actually located in /usr/local/share/PolicyKit/policy (which is symlinked into the kde4 heirarchy) - so it should either -ask for my admin password, which it does -not do!- OR it should simply mount the media.
Now.. here is where things get fun! If I log out of KDE, and into Gnome 2.30 - everything mounts correctly.. and then I can log out, and back into KDE.. and it'll work right.. and I will even be able to unmount the drives that I mounted under gnome..
But it wont mount them back..
And, for good measure: ck-list-sessions from Konsole shows:
Code:
Session13:
unix-user = '1001'
realname = '<removed>'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0'
x11-display-device = '/dev/ttyv8'
display-device = 'ttyv0'
remote-host-name = ''
is-local = TRUE
on-since = '2010-11-09T05:21:25.911663Z'
login-session-id = ''