Authentication Error with VNC

Issue

  • User is reciving a GUI pop-up messages that says the following, and asks for the root password at login:Alt text
  • When logging into a VNC session as user the following message is received:
Authentication is required to set the network proxy used for downloading packages An application is attempting to perofrm an action Action: org.freedesktop.packagekit.system-network-proxy-configure Vendor: The PackageKit Project 

Environment

  • Red Hat Enterprise Linux 6
  • gnome-packagekit, several versions

 Resolution

Solution 1: Ensure that the system is properly registered with RHN/Satellite

(Re)register the system with one of the following commands. This will resolve the fact that the system may have pointed RHN to reference a proxy server [accidentally]:

 # rhn_register 

or

 # rhnreg_ks --username <customerusername> --password <customerpassword> --force 

Solution 2: Disabling the ‘Packagekit Update Applet’

Alternatively it is possible to disable the Packagekit Update Applet, thus also preventing the popup. Here the update options in the GUI will stay available to the user. To disable the applet:

  • In the Gnome GUI go to System > Preferences > Startup Applications
  • Uncheck ‘Packagekit Update Applet’ from the list

Solution 3: Grant the user permissions

Alternatively to above solutions, the affected user can also be granted permissions via PackageKit. Please note, this just grants permissions to run the applet, to perform the updates the root password will be requested. For this the following steps can be used, <user> should be exchanged with the name of the user that should get the permissions:

# cd /etc/polkit-1/localauthority/50-local.d # cat > 50-network-proxy-username-access.pkla << EOF [Allow <user> remote access to network proxy] Identity=unix-user:<user> Action=org.freedesktop.packagekit.system-network-proxy-configure ResultAny=no ResultInactive=auth_admin ResultActive=yes EOF # # cat > 50-sources-refresh-username-access.pkla << EOF [Allow <user> remote access to sources-refresh] Identity=unix-user:<user> Action=org.freedesktop.packagekit.system-sources-refresh ResultAny=no ResultInactive=auth_admin ResultActive=yes EOF # 

Root Cause

The Packagekit Update Applet (from gnome-packagekit) checks for updates of packages. The gnome-packagekit applet is the front end GUI for RHN (and yum update daemons that check for updates).

For a desktop/workstion, root is typically inaccessible but the will be notified of system updates. The PackageKit Update Applet provides the front end tools for such notifications (and related errors like the one above).

The error message above means that during RHN registration, the system may have pointed RHN to reference a proxy server accidentally, which can be resolved in two ways.

Diagnostic Steps

  • To disable the rhnsd service the following can be used:
# /etc/init.d/rhnsd stop # chkconfig rhnsd off 

Similar Posts

  • RHEL 6 Samba

    Samba and Samba Client Samba allows both RHEL resources to be shared with Windows systems and Windows resources to be shared with RHEL systems. RHEL accesses Windows resources using a package named samba-client. RHEL resources, on the other hand, are shared with Windows systems using a package named samba. Typically, the samba-client is installed and…

  • Mount Windows Share on RHEL

    In CLI    mount -t cifs //ntserver/dir -o username=user,password=pass /mnt/ntserver    In /etc/fstab    //ntserver/dir   /mnt/ntserver   cifs   credentials=/root/.smbpasswd,file_mode=0777,dir_mode=0777   0   0 Then create a file /root/.smbpasswd  with permissions set to 600    username=user    password=pass In /etc/hosts add IP address of ntserver.   

  • How to mount Windows share on Red Hat Enterprise Linux system using CIFS?

    Solution Verified – Updated April 4 2022 at 8:28 PM – Environment Red Hat Enterprise Linux 8 Red Hat Enterprise Linux 7 Red Hat Enterprise Linux 6 Red Hat Enterprise Linux 5 Issue How can Windows shares be mounted on Red Hat Enterprise Linux? Resolution To run the following commands, you need to install cifs-utils…

  • RHEL 6 Install Info

    Bios Settings on HPZ420 Enter BIOS and change the following settings: Storage                 Storage options                                 SATA Mode ==> IDE                 Boot Order                                 UEFI Boot Sources ==> Disable All                                 Legacy Boot Sources ==> Enable All Installing RHEL 6.3 Prerequisites You will need: The RHEL 6.3 Installation DVD and license from RedHat (you need the Workstation…