Home > Cannot Lock > Useradd Cannot Lock /etc/passwd Try Again Later In Linux

Useradd Cannot Lock /etc/passwd Try Again Later In Linux


Please also post /etc/fstab, your drive designation (the uuid one) is atypical. What is the temperature of the brakes after a typical landing? I went further to try to replicate my original issue to see if rebooting back to Recovery Mode and skipping Step #4 above (to remount the filesystem as read-write) would reproduce 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. have a peek here

I needed to delete all four of the following files to proceed: sudo rm /etc/passwd.lock sudo rm /etc/shadow.lock sudo rm /etc/group.lock sudo rm /etc/gshadow.lock This command is really helped me. Murrell Modified: 2010-06-09 07:50 EDT (History) CC List: 3 users (show) atodorov notting steve.rotolo See Also: Fixed In Version: Doc Type: Bug Fix Doc Text: Story Points: --- Clone Of: Environment: Not the answer you're looking for? I believe all mounts in rc.sysinit prior to that are done with mount -n anyway. http://askubuntu.com/questions/84277/cannot-lock-etc-group-in-recovery-mode

Useradd Cannot Lock /etc/passwd Try Again Later In Linux

Baden Württemberg Ticket usage First Catch Bonus Can I hide disabled users in the User Manager? Clearing CD cache in code from the CM How Did The Dred Scott Decision Contribute to the Civil War? gawk inplace and stdout How to disable the high priority publish option in SDL Tridion How to make my logo color look the same in Web & Print? A little lysdexic this morning.

I posted my answer below. Request was from Debbugs Internal Request to [email protected] (Wed, 08 Feb 2012 07:37:30 GMT) Full text and rfc822 format available. I tried preceding the usermod command with "sudo", but it didn't make a difference, same error. Useradd: Cannot Open /etc/passwd Also related: How do I reset a lost password (using recovery mode requires me to type the password)? –Eliah Kagan Jul 12 '12 at 17:41 add a comment| 4 Answers 4

If not, please post your full mount command.so longRalf 0 Kudos Reply Ralf Reinartz Frequent Advisor Options Mark as New Bookmark Subscribe Subscribe to RSS Feed Highlight Print Email to a Toggle useless messagesView this report as an mbox folder, status mbox, maintainer mbox Report forwarded to [email protected], LaMont Jones : Bug#440828; Package mount. None of these files exist in the /etc folder. weblink Its important.

share|improve this answer answered Jan 28 '12 at 22:12 Robin Green 711621 I've been reading many threads with my problem and that was actually the solution. Groupadd Cannot Lock /etc/group Bugs which were a result of editing /etc/mtab which make it get out of sync with the real kernel state are now no longer an issue. Murrell 2009-02-27 09:37:35 EST Hrm. Mounting other filesystems: can't create lock file /etc/mtab~977: Read-only file system (use -n flag to override) These all probably need to take the advise to use "-n" when readonlyroot is set.

Cannot Lock /etc/shadow Ubuntu

Here's the symptoms: can't create lock file /etc/mtab~692: Read-only file system (use -n flag to override) Which results from the various mounts done in rc.sysinit such as: + mount -f / Format For Printing -XML -Clone This Bug -Top of page First Last Prev Next This bug is not in your last search results. Useradd Cannot Lock /etc/passwd Try Again Later In Linux Contact Us | Privacy | Terms of Service Phocean.net Computer Security Blog Search for: Menu Skip to content Blog Archives Code Docs About Twitter RSS /etc/mtab~ issue at startup 1 Comment Existing Lock File /etc/passwd.lock Without A Pid share|improve this answer answered Jun 13 '11 at 7:16 cnicutar 1 to change password, use " passwd " –Raptor Jun 13 '11 at 7:21 add a comment| up vote

Reported by: "Richard Wohlstadter" Date: Tue, 4 Sep 2007 16:12:04 UTC Severity: normal Found in version util-linux/2.12r-19 Fixed in versions 2.13, 2.20.1-1 Done: Roger Leigh Bug is archived. http://ecoflashapps.com/cannot-lock/cannot-lock-lock-file-etc-mtab-timed-out.html On 1941 Dec 7, could Japan have destroyed the Panama Canal instead of Pearl Harbor in a surprise attack? Thanks! sudo recovery-mode share|improve this question edited Sep 25 '14 at 7:46 Oli♦ 174k57437648 asked Dec 1 '11 at 11:07 oadams 43131029 add a comment| 1 Answer 1 active oldest votes up Cannot Lock /etc/group Try Again Later

Please consider upping these values in the main package if you don't see any harm in doing so. Related 14Cannot lock '/etc/group' in recovery mode10When Ubuntu asks for an admin user's password, how does it decide which administrative user to ask for?2Changing groups as nonadmin14I deleted the “/etc/passwd” file The other users were setup as "Standard" users. Check This Out It looks like I successfully added my userid to the group associated with my wife's account.

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Useradd: Existing Lock File /etc/subuid.lock Without A Pid [email protected]:/home$ sudo userdel eric [email protected]:/home$ share|improve this answer answered Sep 17 '14 at 20:45 Eric Leschinski 2,77742642 add a comment| Your Answer draft saved draft discarded Sign up or log Examples 20 Mar, 2011 How To Use Linux Kill Command 20 Mar, 2011 How To Backup LVM Configuration On Linux (vgcfgbackup & vgcfgrestore) 25 Feb, 2011 How to Create Partition in

Do not delete the file /etc/mtab (without "~").

Anyway, I'm just happy to now have at least one user on the computer with Administrator access. Once rebooted into Ubuntu, I could see that my userid was now listed as being a member of the admin group, by executing "Groups" command from the normal terminal session. How can I declare independence from the United States and start my own micro nation? Groupadd: Existing Lock File /etc/group.lock Without A Pid In my attempt to try to add myself to the user groups for the other users, I somehow deleted myself from the admin groups.

Pen Tester's Programming Style Real numbers which are writable as a differences of two transcendental numbers Did a thief think he could conceal his identity from security cameras by putting lemon Thanks again. –BubbaJ Nov 17 '11 at 15:37 add a comment| Not the answer you're looking for? When I use the "groups" command, I can see only my id and my wife's id in the list. http://ecoflashapps.com/cannot-lock/useradd-cannot-open-etc-passwd.html There isn't enough room here to post the fstab file, but here is (I think) the relevant line: UUID=0c5c5838-0cba-405e-a3ba-ca2555b90469 / ext4 errors=remount-ro,user_xattr 0 1 –oadams Dec 1 '11 at 22:58

UbuntuCommunityAsk!DeveloperDesignDiscourseHardwareInsightsJujuShopMore ›AppsHelpForumLaunchpadMAASCanonical current community chat Ask Ubuntu Ask Ubuntu Meta your communities Sign up or log in to customize your list. I no longer see the "admin" or "adm" groups, and others that used to be listed.