Authentication is required …


Problem:

Running gnome or another desktop, the user receives the following error.

Authentication is required to set the network proxy used for downloading packages

Authentication is required to create a color managed device

Solution

Authentication is required to set the network proxy used for downloading packages

Login as root and create or edit the file /etc/polkit-1/localauthority/30-site.d/20-no-show-proxy-dialog.pkla with a text editor and add the following content:

[No Show Proxy Dialog]
Identity=unix-user:*
Action=org.freedesktop.packagekit.system-network-proxy-configure
ResultAny=no
ResultInactive=no
ResultActive=no


Authentication is required to create a color managed device

Login as root and create or edit the file /etc/polkit-1/localauthority/50-local.d/color.pkla with a text editor and add the following content:

[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.org.freedesktop.color-manager.modify-profile
ResultAny=yes
ResultInactive=yes
ResultActive=yes

Red Hat 8 Users

Go to folder /etc/polkit-1/localauthority/50-local.d and create these two files:

-rw-r–r–  1 root root    368 okt.  29 12:22 allow.colord.pkla
-rw-r–r–  1 root root    165 okt.  29 12:27 allow-update-repo.pkla

::::::::::::::
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.m
odify-device;org.freedesktop.color-manager.modify-profile
ResultAny=no
ResultInactive=no
ResultActive=yes

::::::::::::::
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

Then restart polkit:

systemctl restart polkit

Use the following command to start gnome

/etc/X11/xinit/Xsession gnome-session