useradd does not delete lock files if non-unique uid creation is attempted without -o flag
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.