[CentOS] useradd: unable to lock password file

Nick Bryant list at everywhereinternet.com
Thu Sep 1 03:42:38 UTC 2005

>From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On
Behalf Of Wayne Bastow
>Sent: Thursday, 1 September 2005 1:14 PM
>To: CentOS mailing list
>Subject: Re: [CentOS] useradd: unable to lock password file
>Were you already running a useradd before you started this one? Maybe in
another terminal session.

Yes. It gets called about 10 times a minute at busy times... however it was
working fine then just suddenly stopped :(

>Try killing the process and see if the passwd.lock file is still there.

I've been through and looked for any other process and can't find one :( 

Any other ideas?

>On 9/1/05, Nick <list at everywhereinternet.com> wrote:
>Help. I have an issue adding accounts to a centos box of joy that has
>otherwise been 100% reliable.
>Basically if I run a "useradd test" as root it returns useradd: unable to
>lock password file. 
>There is a /etc/passwd.lock file:
>[root at bill etc]# more passwd.lock
>6697 root      25   0 22672  22M   612 R    47.2  1.1   1:02   1 useradd
>Eating lots of cpu... but doing what?
>If anyone has any clues I'd really appreciate the help :)

CentOS mailing list 
CentOS at centos.org

More information about the CentOS mailing list