After last update with manjaro-hotfix my system needs password for mount any devices

image

It’s not critical but its bad

Most likely the polkit rule was removed with the replacement of manjaro-hotfixes with a dummy file. You can try recreating the rule in /etc/polkit-1/rules.d/99-manjaro.rules as outlined here in the first entry:

3 Likes

Hi,
Same here but i cannot access to the folder /etc/polkit-1/rules.d (it’s protected)…
Screenshot_20240120_085811

sudo nano /etc/polkit-1/rules.d/99-manjaro.rules

and add the following:

polkit.addRule(function(action, subject) {
    if (action.id.indexOf("org.freedesktop.udisks2.") == 0 && subject.isInGroup("wheel")) {
        return polkit.Result.YES;
    }
});

polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.login1.power-off" ||
        action.id == "org.freedesktop.login1.reboot" ||
        action.id == "org.freedesktop.login1.hibernate" ||
        action.id == "org.freedesktop.login1.suspend") {
        return polkit.Result.YES;
    }
});

polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.upower.hibernate" ||
        action.id == "org.freedesktop.upower.suspend") {
        return polkit.Result.YES;
    }
});

/* Allow users of network group to use blueman feature requiring root without authentication */
polkit.addRule(function(action, subject) {
    if ((action.id == "org.blueman.network.setup" ||
         action.id == "org.blueman.dhcp.client" ||
         action.id == "org.blueman.rfkill.setstate" ||
         action.id == "org.blueman.pppd.pppconnect") &&
        subject.isInGroup("network")) {
        return polkit.Result.YES;
    }
});

Then ctrl+s to save and ctrl+x to close nano.

EDIT: by looking at this post seems enough to only add

polkit.addRule(function(action, subject) {
    if (action.id.indexOf("org.freedesktop.udisks2.") == 0 && subject.isInGroup("wheel")) {
        return polkit.Result.YES;
    }
});
6 Likes

Thanks, i did it (the short version). :slightly_smiling_face:

Thanks, it works!

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.