non-root user running 'yum list' results in Traceback with IOError or OSError of [Errno 13] Permission denied: '/var/lib/yum/...'

Solution In Progress - Updated -

Issue

  • A yum list installed when executed by non-root user fails to access/create files under /var/lib/yum/ directory. Here are some errors that have been seen:
    • IOError: [Errno 13] Permission denied: '///var/lib/yum/uuid'
    • OSError: [Errno 13] Permission denied: '/var/lib/yum/yumdb/.../from_repo'
    • CRITICAL:yum.cli:Config error: Permission denied: '///var/lib/yum/uuid'

Environment

  • Red Hat Enterprise Linux (RHEL) 6
  • Red Hat Enterprise Linux (RHEL) 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content