* udisks/upower 等用のpolicykit設定 [#md3a825f]

メッセージ

どのようなルールにするのか検討が必要.

以下参考.

ubuntu の policykit-desktop-privileges パッケージ

/var/lib/polkit-1/localauthority/10-vendor.d に

[Mounting, checking, etc. of internal drives]
Identity=unix-group:admin
Action=org.freedesktop.udisks.filesystem-*;org.freedesktop.udisks.drive-ata-smart* 
ResultActive=yes

[Change CPU Frequency scaling]
Identity=unix-group:admin
Action=org.gnome.cpufreqselector
ResultActive=yes

[Setting the clock]
Identity=unix-group:admin
Action=org.gnome.clockapplet.mechanism.*;org.kde.kcontrol.kcmclock.save
ResultActive=yes

#[Disable hibernate by default]
#Identity=unix-user:*
#Action=org.freedesktop.upower.hibernate
#ResultActive=no

というファイルを置いている.

Arch Linux の参考

ユーザを storage グループ,power グループに所属させて,

にあるような設定を /etc/polkit-1/localauthority/50-local.d/ あたりに置く.




トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2021-12-17 (金) 16:35:44