$sudo vi /usr/share/polkit-1/rules.d/03-allow-wifi.rules
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.NetworkManager.wifi.scan" &&
subject.isInGroup("ユーザーグループ名")) {
return polkit.Result.YES;
}
});
$sudo vi /usr/share/polkit-1/rules.d/04-allow-network-control.rules
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.NetworkManager.network-control" &&
subject.isInGroup("ユーザーグループ名")) {
return polkit.Result.YES;
}
});
$sudo vi /usr/share/polkit-1/rules.d/05-allow.system-sources-refresh.rules
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.packagekit.system-sources-refresh" &&
subject.isInGroup("ユーザーグループ名")) {
return polkit.Result.YES;
}
});
$sudo systemctl restart polkit.service