Polkit/Consolekit 在 openRC 中無法運作

Polkit/Consolekit 在 openRC 中無法運作

前段時間我從 Systemd 遷移到 OpenRC。這是非常不同的,為了能夠使用音訊和網路攝影機,我必須將我的用戶添加到音訊、光學和視訊群組。由於某些軟體使用 pkexec 以超級用戶身份運行,因此當我打開它們時(因為我使用 XFCE)什麼也沒有發生。當我使用 Systemd 時,這並沒有發生,並且它配置為使用 /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 (我已安裝)。當我在終端機中寫入 pkexec 時,這是輸出

$ pkexec
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is required to modify fingerprint authentication data
Authenticating as: (MY USERNAME)
Password:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized

This incident has been reported.

我不知道如何在 OpenRC 中啟用 polkit 守護程式/服務,在 Systemd 中,該服務名為「polkit」。但是 ConsoleKit (有什麼區別?)似乎失敗了

$ service consolekit status
 * status: stopped
# service consolekit restart
 * starting consolekit . .
$ service consolekit status
 * status: crashed

我的發行版是拋物線(基於 Arch,不同之處在於從儲存庫和 Arch 本身中刪除了所有非自由軟體包,因為 Arch 也使用 Systemd、Parabola),我在虛擬機器中更改為 OpenRC,並且正在測試它。

先致謝

其他輸出

$ groups
wheel network video audio storage polkitd $USERNAME

答案1

我不知道你正在使用什麼軟體包,但你可能需要 polkit-consolekit ,也許還需要一些其他軟體包。

以下是從 systemd 切換到 Manjaro(類似 Arch 發行版)的 OpenRC 的指南: https://wiki.manjaro.org/index.php?title=OpenRC,_an_alternative_to_systemd

相關內容