Package installation fails due to hardcoded uid?

Solution Verified - Updated -

Issue

Many packages such as the libvirt package has a hardcoded uid in its preinstall script:

getent passwd qemu >/dev/null || \
  useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \
    -c "qemu user" qemu

The useradd command fails if the system is configured to use a naming service where this uid is already in use.

Environment

Red Hat Enterprise Linux 6.3
libvirt-0.9.10-21.el6_3.4

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