Povolení přepínání stavu Bluetooth
Povolení členům skupiny wheel
/etc/polkit-1/rules.d/blueman.rules:
/* Allow users in wheel 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("wheel")) {
return polkit.Result.YES;
}
});
📋 Pravidlo převzato z GitHubu
Povolení všem
/etc/polkit-1/rules.d/blueman.rules:
/* Allow all users 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") {
return polkit.Result.YES;
}
});
No comments to display
No comments to display