Authentication Required on Ubuntu 20.04
Background
当我使用remote 桌面连接到Ubuntu系统的时候,总是频繁的跳出Authentication Required窗口,十分影响操作:
Once you are logged in mainly the system ask for color profile and management password as well as Repository update and shut down. The following content should be written in a file named say "nofurtherlogin.pkla" in /etc/polkit-1/localauthority/50-local.d/ by the command
sudo touch /etc/polkit-1/localauthority/50-local.d/nofurtherlogin.pkla
now paste the following contents in the file:
[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
亲测有效!
参考:Authentication Required for everything I do in Ubuntu 19.10
朱颜辞镜花辞树,敏捷开发靠得住!