Have anything to say?

Your email address will not be published. Required fields are marked *

All comments are subject to moderation.

3 Comments

  1. I know this is old, but I thought I'd share my experience. It helped me with a batch userdel script I was working on that kept giving me that lock error. The "ls -L" method you mentioned didn't find them all. There was a stray .pwd.lock file in /etc that the following command found:

    find / -type f -name "*.lock"

    Once I removed it, the script worked. Thanks!

  2. Nope, removing the *.lock files broke it completely:
    *** Error in 'newusers': double free or corruption (!prev): 0x00007f968a371c70 ***