Why does installation of nscd fail with PREIN scriptlet failure on a machine using Centrify authentication?
Issue
- Installation of
nscdpackage 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 28i.e.Centrify
# adquery group|grep :28:
somegroup:x:28:member1,member2
- The RHEL5
nscdpackage doesn't care about its numbericGID, 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
