首页 > 其他分享 >Authentication-required

Authentication-required

时间:2023-03-31 10:33:33浏览次数:49  
标签:color freedesktop required manager Authentication org

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

Authentication required to create managed color device
img

Authentication required to refresh system repositories
img

执行记录

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

1. 解决Authentication required to create managed color device

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

[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

标签:color,freedesktop,required,manager,Authentication,org
From: https://www.cnblogs.com/seelevollerei/p/17275462.html

相关文章