Comment 15 for bug 432964

Revision history for this message
Tuomas Aavikko (taavikko) wrote : Re: [Bug 432964] Re: usermod fails: "cannot lock /etc/passwd"

2009/9/26 Tuomas Aavikko <email address hidden>
>
> Tried to add new user:
> tta@dv5:~$ sudo adduser test
> [sudo] password for tta:
> Adding user `test' ...
> Adding new group `test' (1001) ...
> Adding new user `test' (1001) with group `test' ...
> useradd: cannot lock /etc/passwd; try again later.
> adduser: `/usr/sbin/useradd -d /home/test -g test -s /bin/bash -u 1001
> test' returned error code 1. Exiting.
> tta@dv5:~$
>

And then on my KDE setup
devil@core7:~$ sudo adduser test
[sudo] password for devil:
Adding user `test' ...
Adding new group `test' (1001) ...
Adding new user `test' (1001) with group `test' ...
Creating home directory `/home/test' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for test
Enter the new value, or press ENTER for the default
        Full Name []: testing tester
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:
Is the information correct? [Y/n] y
devil@core7:~$

So passwd is b0rked on fresh installation (tried reinstalling it)
But upgrade from Jaunty is working correctly.