Cloudflashes’s Weblog

Here is the sky to fly

  •  

    October 2008
    M T W T F S S
         
     12345
    6789101112
    13141516171819
    20212223242526
    2728293031  
  • Pages

QA – Useradd: unable to lock password file

Posted by cloudflashes on October 27, 2008

Q:

Under Red Hat Linux release 9, use root to add a user, get error message as below:

useradd: unable to lock password file

A:

Needed to remove a lock file

Under the /etc directory, there are some lock files as:
group.lock
gshadow.lock
passwd.lock
shadow.lock

or
.pwck.lock
.pwd.lock

Remove them.

Leave a Reply

You must be logged in to post a comment.