[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
up to date 16.04 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
barki@ninja-network:~$ sudo apt-get update sudo: unable to resolve host ninja-network [sudo] password for barki: Ign http://dl.google.com stable InRelease Ign http://ppa.launchpad.net wily InRelease Hit http://dl.google.com stable Release.gpg Ign http://archive.canonical.com trusty InRelease Hit http://archive.ubuntu.com wily InRelease Get:1 http://ppa.launchpad.net wily InRelease [15.4 kB] Hit http://dl.google.com stable Release Hit http://archive.canonical.com trusty Release.gpg Get:2 http://archive.ubuntu.com wily-updates InRelease [64.4 kB] Hit http://ppa.launchpad.net wily InRelease Hit http://archive.canonical.com trusty Release Hit http://ppa.launchpad.net wily InRelease Ign http://ppa.launchpad.net wily Release.gpg Get:3 http://ppa.launchpad.net wily/main Sources [582 B] Get:4 http://ppa.launchpad.net wily/main amd64 Packages [839 B] Get:5 http://ppa.launchpad.net wily/main i386 Packages [839 B] Hit http://dl.google.com stable/main amd64 Packages Hit http://archive.ubuntu.com wily-backports InRelease Get:6 http://ppa.launchpad.net wily/main Translation-en [396 B] Hit http://dl.google.com stable/main i386 Packages Get:7 http://archive.ubuntu.com wily-security InRelease [64.4 kB] Hit http://archive.canonical.com trusty/partner Sources Get:8 http://ppa.launchpad.net wily/main Translation-en [133 B] Get:9 http://archive.ubuntu.com wily-proposed InRelease [218 kB] Hit http://archive.canonical.com trusty/partner amd64 Packages Hit http://archive.canonical.com trusty/partner i386 Packages Ign http://dl.google.com stable/main Translation-en_US Ign http://dl.google.com stable/main Translation-en Ign http://archive.canonical.com trusty/partner Translation-en Ign http://ppa.launchpad.net wily Release Hit http://ppa.launchpad.net wily/main Sources Hit http://ppa.launchpad.net wily/main amd64 Packages Hit http://ppa.launchpad.net wily/main i386 Packages Hit http://ppa.launchpad.net wily/main Sources Hit http://ppa.launchpad.net wily/main amd64 Packages Hit http://ppa.launchpad.net wily/main i386 Packages Hit http://ppa.launchpad.net wily/main Translation-en Ign http://ppa.launchpad.net wily/main Translation-en Get:10 http://archive.ubuntu.com wily-updates/main Sources [41.4 kB] Ign http://toolbelt.heroku.com ./ InRelease Get:11 http://archive.ubuntu.com wily-updates/universe Sources [11.2 kB] Err http://ppa.launchpad.net wily/main Sources 404 Not Found Err http://ppa.launchpad.net wily/main amd64 Packages 404 Not Found Get:12 http://archive.ubuntu.com wily-updates/multiverse Sources [1,913 B] Hit http://toolbelt.heroku.com ./ Release.gpg Err http://ppa.launchpad.net wily/main i386 Packages 404 Not Found Get:13 http://archive.ubuntu.com wily-updates/restricted Sources [3,741 B] Ign http://ppa.launchpad.net wily/main Translation-en_US Ign http://ppa.launchpad.net wily/main Translation-en Get:14 http://archive.ubuntu.com wily-updates/main amd64 Packages [111 kB] Hit http://toolbelt.heroku.com ./ Release Get:15 http://archive.ubuntu.com wily-updates/restricted amd64 Packages [13.3 kB] Get:16 http://archive.ubuntu.com wily-updates/universe amd64 Packages [50.5 kB] Get:17 http://archive.ubuntu.com wily-updates/multiverse amd64 Packages [5,856 B] Hit http://toolbelt.heroku.com ./ Packages Get:18 http://archive.ubuntu.com wily-updates/main i386 Packages [108 kB] Get:19 http://archive.ubuntu.com wily-updates/restricted i386 Packages [13.4 kB] Get:20 http://archive.ubuntu.com wily-updates/universe i386 Packages [48.5 kB] Get:21 http://archive.ubuntu.com wily-updates/multiverse i386 Packages [6,064 B] Ign http://toolbelt.heroku.com ./ Translation-en_US Ign http://toolbelt.heroku.com ./ Translation-en
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
Barki, sudo rm -f /etc/gshadow.lock ; sudo apt-get install -f Thanks -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
W: Failed to fetch http://ppa.launchpad.net/bzr/ppa/ubuntu/dists/wily/main/source/Sources 404 Not Found W: Failed to fetch http://ppa.launchpad.net/bzr/ppa/ubuntu/dists/wily/main/binary- amd64/Packages 404 Not Found W: Failed to fetch http://ppa.launchpad.net/bzr/ppa/ubuntu/dists/wily/main/binary-i386/Packages 404 Not Found E: Some index files failed to download. They have been ignored, or old ones used instead. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
I don't know what jetty is, and I never installed it, it must have came with a package. I first noticed the terminal mentioning it after I installed node.js so I'm guessing node.js installed it. Looking it up, I see its a web server. I use apache2 so I have no reason to have jetty installed, I've been getting error messages every time I install a new application now, so I'm gonna try removing jetty. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
Heres what happened when I tried to remove jetty: horse@box:~$ sudo apt-get remove --purge jetty Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: jetty* 0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded. 1 not fully installed or removed. After this operation, 1,042 kB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 341177 files and directories currently installed.) Removing jetty ... * Stopping Jetty servlet engine (was reachable on http://box:8080/). jetty start-stop-daemon: user 'jetty' not found start-stop-daemon: user 'jetty' not found invoke-rc.d: initscript jetty, action stop failed. dpkg: error processing jetty (--purge): subprocess installed pre-removal script returned error exit status 2 * Not starting jetty - edit /etc/default/jetty and change NO_START to be 0 (or comment it out). Errors were encountered while processing: jetty E: Sub-process /usr/bin/dpkg returned an error code (1) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
** Changed in: shadow (Ubuntu Precise) Assignee: (unassigned) = neilon johnson (neilonjohnson33) ** Changed in: shadow (Ubuntu) Assignee: (unassigned) = neilon johnson (neilonjohnson33) ** Changed in: shadow (Ubuntu Quantal) Assignee: (unassigned) = neilon johnson (neilonjohnson33) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
Thank you very much for trying to help me, but it is too difficult for me because I am just a user. After some updates ubuntu works very well again. Udo Am 22.02.2013 17:08, schrieb neilon johnson: ** Changed in: shadow (Ubuntu Precise) Assignee: (unassigned) = neilon johnson (neilonjohnson33) ** Changed in: shadow (Ubuntu) Assignee: (unassigned) = neilon johnson (neilonjohnson33) ** Changed in: shadow (Ubuntu Quantal) Assignee: (unassigned) = neilon johnson (neilonjohnson33) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
There is a typo in changelog * debian/passwd.upstart: Add an ++upstrat++ job -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
This bug was fixed in the package shadow - 1:4.1.4.2+svn3283-3ubuntu5.1 --- shadow (1:4.1.4.2+svn3283-3ubuntu5.1) precise-proposed; urgency=low * debian/passwd.upstart: Add an upstrat job to clear locks on [shadow-]passwd/group. (LP: #523896). -- Dmitrijs Ledkovs dmitrij.led...@ubuntu.com Fri, 31 Aug 2012 13:00:33 +0100 ** Changed in: shadow (Ubuntu Precise) Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
I installed the versions of passwd and login from precise-proposed and followed the testcase and the locks (/etc/passwd.lock and /etc/group.lock) were removed. ** Tags removed: verification-needed ** Tags added: verification-done -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
** Changed in: shadow (Ubuntu Precise) Status: Fix Released = Fix Committed ** Changed in: shadow (Ubuntu Quantal) Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
** Changed in: shadow (Ubuntu Precise) Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
On 23 September 2012 23:43, larrycornutt larrycorn...@yahoo.com wrote: ** Changed in: shadow (Ubuntu Precise) Status: Fix Committed = Fix Released No, it was not. The package in precise-proposed and is still pending verification. If it passes verification that the bug will be fix released in precise, if verification will not be passed the package with this fixed will be removed from precise-proposed. Please help to verify this update as outlined in comment #30 above. URL: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/comments/30 Regards, Dmitrijs. ** Changed in: shadow (Ubuntu Quantal) Status: Fix Released = Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
I suspect this is related to the mountall binary package? Which deserves to be condemned to all hell. How DARE the packagers INFECT a distribution with a binary upon startup, other than the kernel? The only binary code upon turning on any computer, should be the kernel. Everything else is utterly disgusting. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
I could fix this myself if it wasn't for unbelievably ridiculous shit like this: On Ubuntu: root@38r8:~# set |wc -l 6705 …on standard Debian: 4r6s1:~# set | wc -l 50 4r6s1:~# …really? *Really*? On Sep 23, 2012, at 4:50 PM, Dmitrijs Ledkovs wrote: On 23 September 2012 23:43, larrycornutt larrycorn...@yahoo.com wrote: ** Changed in: shadow (Ubuntu Precise) Status: Fix Committed = Fix Released No, it was not. The package in precise-proposed and is still pending verification. If it passes verification that the bug will be fix released in precise, if verification will not be passed the package with this fixed will be removed from precise-proposed. Please help to verify this update as outlined in comment #30 above. URL: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/comments/30 Regards, Dmitrijs. ** Changed in: shadow (Ubuntu Quantal) Status: Fix Released = Fix Committed -- You received this bug notification because you are subscribed to the bug report. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. Status in “shadow” package in Ubuntu: Fix Committed Status in “shadow” source package in Precise: Fix Released Status in “shadow” source package in Quantal: Fix Committed 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/removing/modifying system users groups * 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. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
FYI: There is a typo on the changelog: * debian/passwd.upstart: Add an upstrat job to clear locks on [shadow-]passwd/group. (LP: #523896). upstrat vs. upstart Cheers, Raoul -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
Hello Chris, or anyone else affected, Accepted shadow into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/shadow/1:4.1.4.2+svn3283-3ubuntu5.1 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance! ** Changed in: shadow (Ubuntu Precise) Status: Triaged = Fix Committed ** Tags added: verification-needed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
** Branch linked: lp:ubuntu/precise-proposed/shadow -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
This bug was fixed in the package shadow - 1:4.1.4.2+svn3283-3ubuntu7 --- shadow (1:4.1.4.2+svn3283-3ubuntu7) quantal; urgency=low * debian/passwd.upstart: Add an upstrat job to clear locks on [shadow-]passwd/group. (LP: #523896). -- Dmitrijs Ledkovs dmitrij.led...@ubuntu.com Fri, 31 Aug 2012 13:00:33 +0100 ** Changed in: shadow (Ubuntu Quantal) Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
** Description changed: 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) - ProblemType: Package - Architecture: i386 - Date: Thu Feb 18 09:49:47 2010 - DistroRelease: Ubuntu 9.10 - ErrorMessage: subprocess installed post-installation script returned error exit status 1 - InstallationMedia: Ubuntu 9.10 Karmic Koala - Release i386 (20091028.5) - NonfreeKernelModules: fglrx - Package: postfix 2.6.5-3 - ProcVersionSignature: Ubuntu 2.6.31-19.56-generic - SourcePackage: postfix - Title: package postfix 2.6.5-3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 - Uname: Linux 2.6.31-19-generic i686 + == SRU template == + + [IMPACT] + + * Locked files prevent adding/removing/modifying system users groups + * 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. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
Fix uploaded into quantal, waiting in unapproved queue. ** Changed in: shadow (Ubuntu Quantal) Status: In Progress = Fix Committed ** Changed in: shadow (Ubuntu Quantal) Assignee: Dmitrijs Ledkovs (xnox) = (unassigned) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
Fix uploaded into precise-proposed, waiting in unapproved queue. ** Changed in: shadow (Ubuntu Precise) Assignee: Dmitrijs Ledkovs (xnox) = (unassigned) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
** Branch linked: lp:~dmitrij.ledkov/ubuntu/quantal/shadow/clear-locks ** Branch linked: lp:~dmitrij.ledkov/ubuntu/precise/shadow/clear-locks -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
** Changed in: shadow (Ubuntu Quantal) Status: Triaged = In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
** Changed in: shadow (Ubuntu Precise) Assignee: Canonical Foundations Team (canonical-foundations) = Dmitrijs Ledkovs (dmitrij.ledkov) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
** Changed in: shadow (Ubuntu Quantal) Assignee: Canonical Foundations Team (canonical-foundations) = Dmitrijs Ledkovs (dmitrij.ledkov) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
Just got bit by this one again, clean lucid install. The fix is to rm -f /etc/gshadow.lock. sudo do-release-upgrade finishes with this: The upgrade has aborted. Your system could be in an unusable state. A recovery will run now (dpkg --configure -a). Setting up dbus (1.4.18-1ubuntu1) ... groupadd: cannot lock /etc/gshadow; try again later. adduser: `/usr/sbin/groupadd -g 112 messagebus' returned error code 10. Exiting. dpkg: error processing dbus (--configure): subprocess installed post-installation script returned error exit status 1 Setting up whoopsie (0.1.32) ... groupadd: cannot lock /etc/gshadow; try again later. adduser: `/usr/sbin/groupadd -g 112 whoopsie' returned error code 10. Exiting. dpkg: error processing whoopsie (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of language-selector-common: language-selector-common depends on dbus; however: Package dbus is not configured yet. dpkg: error processing language-selector-common (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of ubuntu-standard: ubuntu-standard depends on language-selector-common; however: Package language-selector-common is not configured yet. dpkg: error processing ubuntu-standard (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of accountsservice: accountsservice depends on dbus; however: Package dbus is not configured yet. dpkg: error processing accountsservice (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: dbus whoopsie language-selector-common ubuntu-standard accountsservice Upgrade complete The upgrade has completed but there were errors during the upgrade process. To continue please press [ENTER] -- ...'x' to get out of it, then: root@asdf:~# cd /etc root@asdf:/etc# ls -l *lock ls: unrecognized prefix: hl ls: unparsable value for LS_COLORS environment variable -rw--- 1 root root 0 Aug 14 16:41 gshadow.lock root@asdf:/etc# lsof gshadow.lock root@asdf:/etc# rm -f gshadow.lock root@asdf:/etc# apt-get dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 5 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? Setting up dbus (1.4.18-1ubuntu1) ... dbus start/running, process 4465 Setting up accountsservice (0.6.15-2ubuntu9.3) ... Setting up language-selector-common (0.79) ... Installing new version of config file /etc/fonts/conf.avail/69-language-selector-zh-tw.conf ... Installing new version of config file /etc/fonts/conf.avail/69-language-selector-ja-jp.conf ... Installing new version of config file /etc/fonts/conf.avail/30-cjk-aliases.conf ... Removing obsolete conffile /etc/fonts/conf.avail/69-language-selector-ko-kr.conf ... Removing obsolete conffile /etc/fonts/conf.avail/29-language-selector-ko-kr.conf ... Setting up whoopsie (0.1.32) ... whoopsie start/running, process 4562 Setting up ubuntu-standard (1.267) ... root@asdf:/etc# ...I've replicated this three times in a row now on kvm guests,happy to run any commands on this side and post results here if that would be useful. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
Regarding #17 - I did just experience this problem but with /etc/group.lock instead of passwd. I did use a Guest session immediately before I discovered the breakage. The Guest account crashed when I attempted to play Open Arena, probably due to a fglrx bug. There was a leftover guest- group that I deleted. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
** Changed in: shadow (Ubuntu Precise) Milestone: ubuntu-12.04.1 = ubuntu-12.04.2 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
i dont have permission to remove the files -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
verify that you are de root user command whoami else login with sudo su and try the process for remove files 2012/7/11 nick s n123...@yahoo.com i dont have permission to remove the files -- You received this bug notification because you are subscribed to a duplicate bug report (988995). https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. Status in “shadow” package in Ubuntu: Triaged Status in “shadow” source package in Precise: Triaged Status in “shadow” source package in Quantal: Triaged 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) ProblemType: Package Architecture: i386 Date: Thu Feb 18 09:49:47 2010 DistroRelease: Ubuntu 9.10 ErrorMessage: subprocess installed post-installation script returned error exit status 1 InstallationMedia: Ubuntu 9.10 Karmic Koala - Release i386 (20091028.5) NonfreeKernelModules: fglrx Package: postfix 2.6.5-3 ProcVersionSignature: Ubuntu 2.6.31-19.56-generic SourcePackage: postfix Title: package postfix 2.6.5-3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 Uname: Linux 2.6.31-19-generic i686 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- *GNU/LINUX #553303* Se libre usa software libre!! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
** Tags added: rls-q-incoming -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
** Tags removed: rls-q-incoming -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
typos1 - the bug description contains information about how to get around the bug. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
My upgrade to 12.04 has failed because of this. I ve got an amd64 processor and using 64bit version, though. What should I do get to get around it ? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
** Tags added: bugpattern-written -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
This has turned up on the radar again because whoopsie tries to call adduser on upgrade to 12.04, and many users are finding their /etc/passwd locked. We should update shadow to clear lock on boot. ** Also affects: shadow (Ubuntu Precise) Importance: Undecided Status: New ** Also affects: shadow (Ubuntu Quantal) Importance: Medium Assignee: Canonical Foundations Team (canonical-foundations) Status: Confirmed ** Changed in: shadow (Ubuntu Precise) Status: New = Triaged ** Changed in: shadow (Ubuntu Precise) Importance: Undecided = High ** Changed in: shadow (Ubuntu Quantal) Status: Confirmed = Triaged ** Changed in: shadow (Ubuntu Quantal) Importance: Medium = High ** Changed in: shadow (Ubuntu Precise) Assignee: (unassigned) = Canonical Foundations Team (canonical-foundations) ** Changed in: shadow (Ubuntu Precise) Milestone: None = ubuntu-12.04.1 ** Tags added: rls-p-tracking -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
** Changed in: shadow (Ubuntu) Assignee: Ubuntu Foundations Team (ubuntu-foundations-team) = Canonical Foundations Team (canonical-foundations) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
I'm not really worried by the consistency of single files (each one are updated atomically). The problem is the inconsistency between files (e.g. /etc/passwd and /etc/shadow). I'm not sure what would be the worst case if for example /etc/passwd is updated but /etc/shadow is not. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
On Sat, Aug 06, 2011 at 08:43:29AM -, Nicolas François wrote: I'm not really worried by the consistency of single files (each one are updated atomically). The problem is the inconsistency between files (e.g. /etc/passwd and /etc/shadow). I'm not sure what would be the worst case if for example /etc/passwd is updated but /etc/shadow is not. I think the absolute worse case would be an account locked out because /etc/passwd has been updated with an 'x' but the corresponding entry has not been added to /etc/shadow. But a) that can be guarded against by changing the files in the proper order (which is probably already being done), and b) having lock files left behind doesn't help solve any of the resulting problems. Otherwise, I don't see any real possibility of breakage caused by having one file updated without the other. -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developerhttp://www.debian.org/ slanga...@ubuntu.com vor...@debian.org -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
** Description changed: 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 + * 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 + * 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 anormal operation on the machine (reset, shutdown while the + * any abnormal operation on the machine (reset, shutdown while the computer is still running) ProblemType: Package Architecture: i386 Date: Thu Feb 18 09:49:47 2010 DistroRelease: Ubuntu 9.10 ErrorMessage: subprocess installed post-installation script returned error exit status 1 InstallationMedia: Ubuntu 9.10 Karmic Koala - Release i386 (20091028.5) NonfreeKernelModules: fglrx Package: postfix 2.6.5-3 ProcVersionSignature: Ubuntu 2.6.31-19.56-generic SourcePackage: postfix Title: package postfix 2.6.5-3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 Uname: Linux 2.6.31-19-generic i686 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
It's been suggested that this might be a duplicate of bug 432964, which is described as system crash in guest session locks /etc/passwd forever. Can the submitters of this bug and duplicates confirm whether they've used Ubuntu guest sessions on the affected system, and whether they saw crashes when doing so? Nicolas, you comment in the other bug that we shouldn't clear locks on boot because they indicate something has gone wrong and shouldn't be ignored. While that's true, the trail on bugs like this is likely to be quite cold, and knowing the lock is there gives us only a slim chance of finding the cause. Since updates to these files are atomic and the lock files are used only to prevent two updates in parallel clobbering one another, there should be no file corruption and removing the locks should be safe - so I am inclined to say we should remove the locks at boot. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
** Changed in: shadow (Ubuntu) Assignee: (unassigned) = Ubuntu Foundations Team (ubuntu-foundations-team) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
thnax for the solution Best Regards Akil Afzal Dhrubo Intern Technical Analyst Standard Chartered Bank Institute of Information Technology University of Dhaka From: Brian Murray br...@ubuntu.com To: dhrubo_1...@yahoo.com Sent: Thursday, July 28, 2011 2:08 AM Subject: [Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later. ** Changed in: shadow (Ubuntu) Assignee: (unassigned) = Ubuntu Foundations Team (ubuntu-foundations-team) -- You received this bug notification because you are subscribed to a duplicate bug report (684168). https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. Status in “shadow” package in Ubuntu: Confirmed 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 anormal operation on the machine (reset, shutdown while the computer is still running) ProblemType: Package Architecture: i386 Date: Thu Feb 18 09:49:47 2010 DistroRelease: Ubuntu 9.10 ErrorMessage: subprocess installed post-installation script returned error exit status 1 InstallationMedia: Ubuntu 9.10 Karmic Koala - Release i386 (20091028.5) NonfreeKernelModules: fglrx Package: postfix 2.6.5-3 ProcVersionSignature: Ubuntu 2.6.31-19.56-generic SourcePackage: postfix Title: package postfix 2.6.5-3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 Uname: Linux 2.6.31-19-generic i686 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
** Description changed: 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 anormal operation on the machine (reset, shutdown while the + computer is still running) ProblemType: Package Architecture: i386 Date: Thu Feb 18 09:49:47 2010 DistroRelease: Ubuntu 9.10 ErrorMessage: subprocess installed post-installation script returned error exit status 1 InstallationMedia: Ubuntu 9.10 Karmic Koala - Release i386 (20091028.5) NonfreeKernelModules: fglrx Package: postfix 2.6.5-3 ProcVersionSignature: Ubuntu 2.6.31-19.56-generic SourcePackage: postfix Title: package postfix 2.6.5-3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 Uname: Linux 2.6.31-19-generic i686 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
** Description changed: 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. ProblemType: Package Architecture: i386 Date: Thu Feb 18 09:49:47 2010 DistroRelease: Ubuntu 9.10 ErrorMessage: subprocess installed post-installation script returned error exit status 1 InstallationMedia: Ubuntu 9.10 Karmic Koala - Release i386 (20091028.5) NonfreeKernelModules: fglrx Package: postfix 2.6.5-3 ProcVersionSignature: Ubuntu 2.6.31-19.56-generic SourcePackage: postfix Title: package postfix 2.6.5-3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 Uname: Linux 2.6.31-19-generic i686 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
** Tags added: armel -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/523896 Title: useradd: cannot lock /etc/passwd; try again later. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/523896/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
Might be a duplicate of bug 432964. ** Changed in: shadow (Ubuntu) Status: Incomplete = Confirmed -- useradd: cannot lock /etc/passwd; try again later. https://bugs.launchpad.net/bugs/523896 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
** Description changed: -- useradd: cannot lock /etc/passwd; try again later. https://bugs.launchpad.net/bugs/523896 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
I had the same situation on my ubuntu 9.10 Karmic , I was trying to add my user id to dba Group in order to star and stop the DB services by own , r...@ubuntu:~$ usermod -a -G dba raja usermod: cannot lock /etc/passwd; try again later. i checked for any process locked the /etc/passwd file but found nothing . Then i tried to run the command with sudo this time it worked. -- useradd: cannot lock /etc/passwd; try again later. https://bugs.launchpad.net/bugs/523896 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
I had the same situation here, it turns out it was a stuck useradd process - destroying it got useradd working again, something like this: killall -9 userdel rm -f /etc/*lock In my case the stuck useradd was caused by a bug in my own script, but for the others, if it was caused by the package manager then I guess there might be a package out there with a bug in it's call to useradd. -- useradd: cannot lock /etc/passwd; try again later. https://bugs.launchpad.net/bugs/523896 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
the same problem after install some packages all installation programs ends with error by: userdel: cannot lock /etc/shadow; try again later. -- useradd: cannot lock /etc/passwd; try again later. https://bugs.launchpad.net/bugs/523896 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
Just a note for any future bug reporter: It is now clear that it happens that the passwd or shadow (or group, or gshadow) files can be locked. The me also messages are not very useful (and will not make the resolution of this bug, if it is really a bug, any faster). Please provide instead 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 anormal operation on the machine (reset, shutdown while the computer is still running) * etc. -- useradd: cannot lock /etc/passwd; try again later. https://bugs.launchpad.net/bugs/523896 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
I'm having the same problem trying to install open ssh server off a fresh install although it is set up with nss to use ldap. The file permissions are the same as on the other computers, fuser displays no processes using the file and lslk also displays no locks. The groupadd and groupmod work but the other user admin tools such as userdel don't. I've tried reinstalling the passwd package and the only error I can find in the system is from libcrypt. This was from a alternate cd install of 9.10 maybe it's best just to reinstall? -- useradd: cannot lock /etc/passwd; try again later. https://bugs.launchpad.net/bugs/523896 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 523896] Re: useradd: cannot lock /etc/passwd; try again later.
From what I could tell the passwd.lock and shadow.lock files had not been removed. I don't remember the permissions but they looked correct at the time. I can no longer reproduce the error as I have reloaded my machine for a separate reason. -- useradd: cannot lock /etc/passwd; try again later. https://bugs.launchpad.net/bugs/523896 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs