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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.