useradd does not delete lock files if non-unique uid creation is attempted without -o flag

Solution Verified - Updated -

Issue

The useradd command is not deleting /etc/{passwd,shadow,group,gshadow}.lock when it tries to create a non-unique UID without the -o flag having been specified.

Environment

  • Red Hat Enterprise Linux 5
  • shadow-utils-4.0.17-19.el5

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