tl;dr

ルール作ってpolkit再起動でOK

sudo tee /etc/polkit-1/rules.d/02-allow-colord.rules <<'...'
polkit.addRule(function(action, subject) {
  if ((action.id == "org.freedesktop.color-manager.create-device" ||
      action.id == "org.freedesktop.color-manager.create-profile" ||
      action.id == "org.freedesktop.color-manager.delete-device" ||
      action.id == "org.freedesktop.color-manager.delete-profile" ||
      action.id == "org.freedesktop.color-manager.modify-device" ||
      action.id == "org.freedesktop.color-manager.modify-profile") &&
    subject.isInGroup("{users}")) {
    return polkit.Result.YES;
  }
});
...

sudo tee /etc/polkit-1/rules.d/03-allow-wifi.rules <<'...'
polkit.addRule(function(action, subject) {
  if (action.id == "org.freedesktop.NetworkManager.wifi.scan" &&
    subject.isInGroup("users")) {
    return polkit.Result.YES;
  }
});
...

sudo systemctl restart polkit.service

動作確認した環境

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=23.10
DISTRIB_CODENAME=mantic
DISTRIB_DESCRIPTION="Ubuntu 23.10"

$ pkaction --version
pkaction version 123

参考


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS