【问题标题】:Authentication Required for everything I do in Ubuntu 19.10我在 Ubuntu 19.10 中所做的一切都需要身份验证
【发布时间】:2020-06-02 14:41:36
【问题描述】:

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

【问题讨论】:

  • 我在 18.04 上也遇到了这个问题,除了我根本没有登录循环问题。它刚刚发生,并且 polkit 动作似乎不起作用。仍然没有任何解决办法。
  • 不幸的是,修复它的唯一方法是升级到 20.04。
  • 我已经升级到 21.04 并且仍然遇到同样的问题。有一个不需要弄乱 .pkla 文件的解决方案会很棒

标签: ubuntu authentication permissions ubuntu-19.04 display-manager


【解决方案1】:

一旦您登录,系统主要要求颜色配置文件和管理密码以及存储库更新和关闭。以下内容应通过命令写入 /etc/polkit-1/localauthority/50-local.d/ 中名为 say "nofurtherlogin.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 的问题

【讨论】:

    【解决方案2】:

    我 18.04 有几天完全相同的问题,现在已经解决了。 我所做的只是为/etc/polkit-1/localauthority/50-local.d/99-sudonopassword.pkla 中的 sudo 组创建包含自定义策略的 .pkla 文件。 (我必须在终端中使用 root 登录 -> sudo su

    [No password prompt]
    Identity=unix-group:sudo
    Action=*
    ResultActive=yes
    ResultInactive=yes
    ResultAny=yes
    

    请参阅pklocalauthority 了解更多详情。 然后重启以防万一。

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

    【讨论】:

      【解决方案3】:

      我也遇到了同样的问题,我一辈子都想不通。它从我有用户登录循环开始,它不接受我的密码并停留在登录页面上。我使用link(已解决的答案)解决了这个问题,我只是将/etc/default/grub 文件中的GRUB_CMDLINE_LINUX_DEFAULT 更改为nomodset,更新grub,然后安装lightdm。从那以后,我被要求为我所做的每一件小事进行身份验证。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-09-02
        • 1970-01-01
        • 1970-01-01
        • 2021-10-10
        • 2018-01-22
        • 1970-01-01
        • 2020-10-16
        • 1970-01-01
        相关资源
        最近更新 更多