Sur ma nouvelle installation Arch, contrairement à l'ancienne, ça ne fonctionne pas.
Qu'ai-je oublié ?
Edit [résolu]:
il manquait le lien /usr/share/polkit-1/actions/lesmiennes.policy -> /etc/polkit-1/actions/lesmiennes.policy
pkexec -u root mount -o bind /dev/shm/cache_mozilla ~/.cache/mozilla
Code : Tout sélectionner
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/usr/bin/mount' as the super user
Authenticating as: aviolleau
Password:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized
This incident has been reported.
Code : Tout sélectionner
polkitd[496]: Operator of unix-process:554:5285 FAILED to authenticate to gain authorization for action org.freedesktop.policykit.exec for unix-process:554:5285 [/bin/bash -i] (owned by unix-user:aviolleau)
polkitd[496]: Unregistered Authentication Agent for unix-process:554:5285 (system bus name :1.20, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Code : Tout sélectionner
/* -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- */
// vim:ft=javascript
polkit.addRule (
function (a,s) {
if ( a.id.indexOf ('special') == 0 )
return polkit.Result.YES;
}
);
Code : Tout sélectionner
<?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/policyconfig.dtd">
<policyconfig>
<vendor>tonton.couillon</vendor>
<vendor_url>http://tonton.couillon/Policykit</vendor_url>
<action id="special.mount">
<defaults>
<allow_any>yes</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/mount</annotate>
</action>
</policyconfig>