Authentication-required

发布时间 2023-03-31 10:32:55作者: seelevolet

每次使用远程连接登陆都会询问root密码,刷新repositories,颜色管理也会有同样的问题

Authentication required to create managed color device
这是图片

Authentication required to refresh system repositories
这是图片

执行记录

直接授权给所有用户(在root用户下操作:sudo -i,不然无法直接访问这个路径):

1. 解决Authentication required to create managed color device

在/etc/polkit-1/localauthority/50-local.d下创建规则 45-allow-colord.pklaimgimg,编辑如下内容

[Allow Colord all Users]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile
ResultAny=no
ResultInactive=no
ResultActive=yes

2. 解决Authentication required to refresh system repositorie

在/etc/polkit-1/localauthority/50-local.d下创建规则 46-allow-update-repo.pkla,编辑如下内容:

[Allow Package Management all Users]
Identity=unix-user:*
Action=org.freedesktop.packagekit.system-sources-refresh
ResultAny=yes
ResultInactive=yes
ResultActive=yes

参考

http://c-nergy.be/blog/?p=14051