我在Ubuntu 19.10中所做的一切都需要身份验证

我在Ubuntu 19.10中所做的一切都需要身份验证,ubuntu,authentication,permissions,ubuntu-19.04,display-manager,Ubuntu,Authentication,Permissions,Ubuntu 19.04,Display Manager,我最近将ubuntu从19.04升级到19.10。最初,我无法登录到该用户。每当我输入密码时,它都不会登录并再次要求输入密码。有一种登录循环。现在我可以在将显示管理器更改为lightgdm后登录。但我不知道现在怎么了。登录后,它会不断询问每一件可能的事情的身份验证。其中包括“创建颜色配置文件所需的身份验证”、“刷新系统存储库所需的身份验证”、“系统策略阻止Wifi扫描”等等。此用户已在sudo组中。其他用户工作正常。我甚至无法“在用户设置中解锁用户”(此解决方案在许多地方都有提供)。请帮助我。我

我最近将ubuntu从19.04升级到19.10。最初,我无法登录到该用户。每当我输入密码时,它都不会登录并再次要求输入密码。有一种登录循环。现在我可以在将显示管理器更改为lightgdm后登录。但我不知道现在怎么了。登录后,它会不断询问每一件可能的事情的身份验证。其中包括“创建颜色配置文件所需的身份验证”、“刷新系统存储库所需的身份验证”、“系统策略阻止Wifi扫描”等等。此用户已在sudo组中。其他用户工作正常。我甚至无法“在用户设置中解锁用户”(此解决方案在许多地方都有提供)。请帮助我。

我遇到了完全相同的问题,我一辈子都无法解决它。它开始于当我有用户登录循环时,它不会接受我的密码,并且仍然停留在登录页面上。我使用此解决了这个问题(解答),我只是简单地将
/etc/DEFAULT/GRUB
文件中的
GRUB\u CMDLINE\u LINUX\u DEFAULT
更改为
nomodset
,更新GRUB,然后安装lightdm。从那时起,我就被要求对我所做的每一件小事进行身份验证。

我有18.04天的时间遇到同样的问题,现在已经解决了。 我所做的只是在
/etc/polkit-1/localauthority/50 local.d/99 sudonopassword.pkla
中创建一个.pkla文件,其中包含sudo组的自定义策略(我必须以root用户身份登录终端->
sudo su

[No password prompt]
Identity=unix-group:sudo
Action=*
ResultActive=yes
ResultInactive=yes
ResultAny=yes
有关更多详细信息,请参阅。 然后重新启动,以防万一

如果失败,请尝试使用
sudo apt install--重新安装policykit-1
重新安装polkit。
然后重新启动以防万一。

登录后,系统主要要求提供颜色配置文件和管理密码以及存储库更新并关闭。以下内容应通过命令写入/etc/polkit-1/localauthority/50-local.d/中名为“nofurthelogin.pkla”的文件中

sudo nano /etc/polkit-1/localauthority/50-local.d/nofurtherlogin.pkla
现在将以下内容粘贴到文件中:

[Allow colord for 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=yes
ResultInactive=yes
ResultActive=yes


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

[Allow all users to shutdown]
Identity=unix-user:*
Action=org.freedesktop.login1.power-off-multiple-sessions
ResultAny=yes
ResultActive=yes

[Allow all users to reboot]
Identity=unix-user:*
Action=org.freedesktop.login1.reboot-multiple-sessions
ResultAny=yes
ResultActive=yes

[Allow all users to suspend]
Identity=unix-user:*
Action=org.freedesktop.login1.suspend-multiple-sessions
ResultAny=yes
ResultActive=yes

[Allow all users to ignore inhibit of shutdown]
Identity=unix-user:*
Action=org.freedesktop.login1.power-off-ignore-inhibit
ResultAny=yes
ResultActive=yes

[Allow all users to ignore inhibit of reboot]
Identity=unix-user:*
Action=org.freedesktop.login1.reboot-ignore-inhibit
ResultAny=yes
ResultActive=yes

[Allow all users to ignore inhibit of suspend]
Identity=unix-user:*
Action=org.freedesktop.login1.suspend-ignore-inhibit
ResultAny=yes
ResultActive=yes

这也将解决20.04版的问题

我的18.04版也遇到了这个问题,除了我根本没有登录循环问题。它刚刚发生,而且polkit操作似乎不起作用。仍然没有任何资源用于此。不幸的是,唯一解决问题的是升级到20.04版。