解决Xrdp远程登录Ubuntu需要多次输入密码认证的问题
2021/4/27 7:25:34
本文主要是介绍解决Xrdp远程登录Ubuntu需要多次输入密码认证的问题,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
问题描述
使用 xrdp 远程登录Ubuntu,总是会出现弹框要求输入密码
描述信息一般是:
- 需要授权来创建色彩管理设备 / Authentication is required to create a color managed device
- 需要授权来移除色彩管理设备 / Authentication is required to remove a color managed device
- 刷新系统软件源需要认证 / Authentication is required to refresh the system repositories
解决方案
- 解决“色彩管理设备” / “color managed 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
- 解决“刷新系统软件源需要认证” / “refresh the system repositories” 弹窗
创建文件/etc/polkit-1/localauthority/50-local.d/46-allow-packagekit.pkla
并写入内容:
[Allow Refresh Repository all Users] Identity=unix-user:* Action=org.freedesktop.packagekit.system-sources-refresh ResultAny=no ResultInactive=no ResultActive=yes
!!! 若仍未解决问题继续往下看
以上解决方案可能有很多情况没有覆盖,可能有其他情况需要输入密码,此处描述解决方法。
-
首先使用命令进入到
actions
目录cd /usr/share/polkit-1/actions
查看目录下policy文件
- 以 “刷新系统软件源需要认证” 为例,搜索相关内容:
找到org.freedesktop.packagekit.policy
并打开
查看对应刷新系统软件源需要认证这一项的action id
将上述配置方法中的Action
的值配置为action id
即Action=org.freedesktop.packagekit.system-sources-refresh
至此问题解决,后续登录无需输入密码
这篇关于解决Xrdp远程登录Ubuntu需要多次输入密码认证的问题的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-09-28微服务架构中API版本控制的实践
- 2024-09-28AI给的和自己写的Python代码,都无法改变输入框的内容,替换也不行
- 2024-09-27Sentinel配置限流资料:新手入门教程
- 2024-09-27Sentinel配置限流资料详解
- 2024-09-27Sentinel限流资料:新手入门教程
- 2024-09-26Sentinel限流资料入门详解
- 2024-09-26Springboot框架资料:初学者入门教程
- 2024-09-26Springboot框架资料详解:新手入门教程
- 2024-09-26Springboot企业级开发资料:新手入门指南
- 2024-09-26SpringBoot企业级开发资料新手指南