Portál AbcLinuxu, 12. května 2025 15:46
Hal.PermissionDeniedByPolicy
. Přitom na wiki archlinuxu je napsáno, že to má fungovat se storage skupinou.
Další problém je, že nefunguje networkmanager. Teda on sám o sobě funguje, ale nm-applet z gnome ani networkmanager-plasmoid se na něj nedokážou připojit, zase kvůli právům, přitom v uživateské skupině network jsem.
Pod rootem vše funguje.
/etc/PolicyKit/PolicyKit.conf
a /usr/share/PolicyKit/policy/org.freedesktop.hal.storage.policy
.
# cat /etc/PolicyKit/PolicyKit.conf <?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"> </config> # cat /usr/share/PolicyKit/policy/org.freedesktop.hal.storage.policy <?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>
/etc/PolicyKit/PolicyKit.conf
přidat
<config version="0.1"> <match action="org.freedesktop.hal.storage.mount-removable"> <return result="yes"/> </match> </config>a pak
/etc/rc.d/hal restart
.
<config version="0.1"> <match action="org.freedesktop.hal.storage.mount-removable"> <return result="yes" /> </match> <match action="org.freedesktop.hal.storage.eject-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> </config>
/usr/share/PolicyKit/policy
jaké má akce ID, a to pak použij v /etc/PolicyKit/PolicyKit.conf
.
** (nm-applet:3326): WARNING **: <WARN> applet_dbus_manager_start_service(): Could not acquire the NetworkManagerUserSettings service. Message: 'Connection ":1.40" is not allowed to own the service "org.freedesktop.NetworkManagerUserSettings" due to security policies in the configuration file'
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.