useradd: cannot lock /etc/passwd; try again later.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
shadow (Ubuntu) |
Fix Released
|
High
|
neilon johnson | ||
Precise |
Fix Released
|
High
|
neilon johnson | ||
Quantal |
Fix Released
|
High
|
neilon johnson |
Bug Description
Binary package hint: postfix
Ubuntu 9.10, via Update Manager.
SOLUTION:
Look for /etc/group.lock, /etc/passwd.lock and /etc/shadow.lock files and remove them.
Be careful to only remove the files ending in 'lock' or else you might damage your system.
Please do not add comments just containing "Me too", instead please provide any information that could indicate why the files were locked:
* the list of locked files:
ls /etc/passwd.lock /etc/shadow.lock /etc/group.lock /etc/gshadow.lock
* check the /var/log/auth.log for any message that could indicate the failure of any other tool (prior to the failure which reported the locked file)
* any abnormal operation on the machine (reset, shutdown while the computer is still running)
== SRU template ==
[IMPACT]
* Locked files prevent adding/
* This can result in failure to upgrade/remove packages that use system user names
* The applied fix is to clear the locks on booting.
[TESTCASE]
* $ sudo touch /etc/passwd.lock
* $ sudo adduser testing523896
* FAIL
* Upgrade to new package
* $ sudo adduser testing523896
* FAIL
* $ sudo reboot (or shutdown & poweron machine in any other way)
* $ sudo adduser testing523896
* PASS
* Also you can touch the locks, check that they are there and run `$ sudo start passwd` to clear them.
[Regression Potential]
* We are adding an extra job which will always run at boot, which will have a tiny impact on boot performance
* The new job can be mis-used directly via `$ sudo start passwd`, but root user could clear the locks in the exact same way as well, before introducing this upstart job.
Related branches
- Steve Langasek: Approve
-
Diff: 50 lines (+27/-0)3 files modifieddebian/changelog (+7/-0)
debian/passwd.upstart (+18/-0)
debian/rules (+2/-0)
affects: | postfix (Ubuntu) → ubuntu |
description: | updated |
tags: | added: armel |
description: | updated |
description: | updated |
Changed in shadow (Ubuntu): | |
assignee: | nobody → Ubuntu Foundations Team (ubuntu-foundations-team) |
description: | updated |
Changed in shadow (Ubuntu): | |
assignee: | Ubuntu Foundations Team (ubuntu-foundations-team) → Canonical Foundations Team (canonical-foundations) |
tags: | added: bugpattern-written |
tags: | added: rls-q-incoming |
tags: | removed: rls-q-incoming |
Changed in shadow (Ubuntu Precise): | |
milestone: | ubuntu-12.04.1 → ubuntu-12.04.2 |
Changed in shadow (Ubuntu Precise): | |
assignee: | Canonical Foundations Team (canonical-foundations) → Dmitrijs Ledkovs (dmitrij.ledkov) |
Changed in shadow (Ubuntu Quantal): | |
assignee: | Canonical Foundations Team (canonical-foundations) → Dmitrijs Ledkovs (dmitrij.ledkov) |
Changed in shadow (Ubuntu Quantal): | |
status: | Triaged → In Progress |
description: | updated |
Changed in shadow (Ubuntu Precise): | |
status: | Fix Committed → Fix Released |
Changed in shadow (Ubuntu Precise): | |
status: | Fix Released → Fix Committed |
Changed in shadow (Ubuntu Quantal): | |
status: | Fix Committed → Fix Released |
Changed in shadow (Ubuntu Precise): | |
assignee: | nobody → neilon johnson (neilonjohnson33) |
Changed in shadow (Ubuntu): | |
assignee: | nobody → neilon johnson (neilonjohnson33) |
Changed in shadow (Ubuntu Quantal): | |
assignee: | nobody → neilon johnson (neilonjohnson33) |
I didn't even want postfix installed, the auto update program decided it was a new dependancy of google-chrome. The update failed and google chrome was removed.