Why does installation of nscd fail with PREIN scriptlet failure on a machine using Centrify authentication?

Solution Verified - Updated -

Issue

  • Installation of nscd package fails while running the following command with errors.
# yum install nscd
  • The pertinent errors are
Error in PREIN scriptlet in rpm package nscd-2.12-1.107.el6_4.4.x86_64
groupadd: GID '28' already exists
useradd: group 'nscd' does not exist
error: %pre(nscd-2.12-1.107.el6_4.4.x86_64) scriptlet failed, exit status 6
error:   install: %pre scriptlet failed (2), skipping nscd-2.12-1.107.el6_4.4
  • It fails because the directory service already knows a group with GID 28 i.e. Centrify
# adquery group|grep :28:
somegroup:x:28:member1,member2
  • The RHEL5 nscd package doesn't care about its numberic GID, so the GID can be anything for that on Red Hat Enterprise Linux 5 as follows.
# groupadd -r nscd
# getent group nscd
nscd:x:489:
# yum install nscd
  • And the package installs successfully after above steps.

Environment

  • Red Hat Enterprise Linux 6.4
  • nscd

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