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…

  • RHEL 6 NFS

    Ensuring NFS Services are running on RHEL 6 The first task is to verify that the NFS services are installed and running on your RHEL 6 system. This can be achieved either from the command line, or using the graphical services tool. Begin by confirming that the NFS service is installed by running the following command from a…

  • 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…

  • Configure redhat remote printers

    On system connected to printer In system-config-settings under server settings check Share published printers connected to this system. On system connecting to remote printer Using makePrinter, create a printer using the same printer name as server. Also, hostname of server must be in /etc/hosts.  The UIR(port) should be ipp-1. Using system-config-printers, modify Device URI to read ipp//host-IP:631/printers/printer-name This allows for remote printing using the internet printer protocol.

  • Make Bootable USB Drive

    Make Bootable USB Drive with RHEL 6.3 Copy all files for image to a directory, RHEL63KS. Make the iso image file by typing the following command: mkisofs -o boot.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -V RHEL63KS -T ./RHEL63KS This will create a file called boot.iso. Rename this file, RHEL63KS.iso. Insert…