I got the same error message reported here, but there were no .lock files to delete. Other threads suggest deleting lock files, but I cannot find any. For example, I cannot "sudo /bin/cat /etc/shadow" (returns permission denied), and nothing is logged to audit.log. With ExamplesUnderstand Each Entries Of Linux Shadow (/etc/shadow) FileLinux Usermod Command To Modify User DetailsUnderstand Each Entries Of Linux Password (/etc/passwd) FileLinux Command To Show / List All Users In the have a peek here
Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. I've tried reinstalling the passwd package and the only error I can find in the system is from libcrypt. Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. Kind regards repo View Public Profile View LQ Blog View Review Entries View HCL Entries Visit repo's homepage!
Package postfix which provides mail-transport-agent is not configured yet. ... According to RHEL documentation, staff_u users have sudo access. We Acted. Exiting.
How would strace help me? We Acted. Bug #523896 reported by Chris Howard on 2010-02-18 1322 This bug affects 165 people Affects Status Importance Assigned to Milestone shadow (Ubuntu) Edit Fix Released High neilon johnson Edit You current community blog chat Super User Meta Super User your communities Sign up or log in to customize your list.
[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 Useradd: Existing Lock File /etc/subuid.lock Without A Pid but there is none of the lock file showing under /etc/ please suggest amolmistry View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by you have to raise your user level by using "sudo" or "su" command. –Raptor Jun 13 '11 at 7:18 3 Your /etc/shadow directory?!? /etc/shadow should be a file. If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done.
Preparing to replace libkrb5-3 1.7dfsg~beta3-1ubuntu0.3 (using .../libkrb5-3_1.7dfsg~beta3-1ubuntu0.4_i386.deb) ... https://ubuntuforums.org/showthread.php?t=2209632 Changed in shadow (Ubuntu): status: Incomplete → Confirmed BackTrack (pmeyer) on 2011-07-18 tags: added: armel Andreas Moog (amoog) on 2011-07-21 description: updated Andreas Moog (amoog) on 2011-07-22 description: updated Brian Murray Useradd Cannot Lock /etc/passwd Try Again Later. Ubuntu Please help to verify this update as outlined in comment #30 above. Cannot Lock /etc/shadow Ubuntu The fix is to "rm -f /etc/gshadow.lock". "sudo do-release-upgrade" finishes with this: The upgrade has aborted.
strace -o /root/blah -ff useradd imatestuser In particular, the "/etc/.pwd.lock" file would not be found by your "/etc/*.lock" glob. navigate here The way I usually call strace is strace -f -e trace=file command since this usually gives the most useful results. –Robin Green Apr 14 '14 at 11:03 add a comment| up Pen Tester's Programming Style Moving a member function from base class to derived class breaks the program for no obvious reason Can clients learn their time zone on a network configured Chris Howard (guru42101) wrote on 2010-02-23: #4 Download full text (8.2 KiB) This issue started for me originally with Jetty I think, I didn't have the ability to submit a bug Existing Lock File /etc/passwd.lock Without A Pid
Wow, I don't think I've seen this, yet. The users who voted to close gave this specific reason:"Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was i checked for any process locked the /etc/passwd file but found nothing . Check This Out 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
The only real documentation I could find relating to this issue is this bug filed with Redhat 2 years ago and it has no responses. Useradd: Cannot Lock /etc/subuid; Try Again Later. 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. Search this Thread 03-26-2011, 09:29 AM #1 mahmoodn Member Registered: May 2010 Posts: 409 Rep: problem with /etc/passwd Hi, I want to add a user with useradd command, however
The only issue I encounter with SELinux, as demonstrated here, is that the documentation is really lacking, and many users don't know a lot about it (probably because most disable it). No NSFW posts. How to show that something is not completely metrizable Why is looping over find's output bad practice? Ansible Cannot Lock /etc/passwd if so then that would suggest a problem with your sudoers file as suggested by iowan.
Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . y (Reading database ... 341177 files and directories currently installed.) Removing jetty ... * Stopping Jetty servlet engine (was reachable on http://box:8080/). Errors were encountered while processing: jetty E: Sub-process /usr/bin/dpkg returned an error code (1) Barki Mustapha (mustbarki) wrote on 2016-01-04: #42 W: Failed to fetch http://ppa.launchpad.net/bzr/ppa/ubuntu/dists/wily/main/source/Sources 404 Not Found W: Failed http://ecoflashapps.com/cannot-lock/useradd-cannot-open-etc-passwd.html See original description Tags: verification-done apport-package armel bugpattern-written i386 rls-p-tracking Edit Tag help Related branches lp:~xnox/ubuntu/quantal/shadow/clear-locks Merged into lp:ubuntu/quantal/shadow at revision 49 Steve Langasek: Approve on 2012-08-31 Diff: 50 lines (+27/-0)3
Edit: A lock file is typically written somewhere in the file system but it is not necessarily held by any process. I just create policies or small modifications as needed for my stuff. Red Hat Account Number: Red Hat Account Account Details Newsletter and Contact Preferences User Management Account Maintenance Customer Portal My Profile Notifications Help For your security, if you’re on a public All rights reserved.REDDIT and the ALIEN Logo are registered trademarks of reddit inc.Advertise - technologyπRendered by PID 17380 on app-535 at 2016-11-08 00:22:50.741223+00:00 running 57a3e5e country code: GB.
In that case, when you execute useradd next time, it may show the error “cannot lock /etc/password” or “unable to lock group file”. So, I changed the line in the sudoers file from "testacct ALL=(ALL) ALL" to "testacct ALL=(ALL) TYPE=sysadm_t ROLE=sysadm_r ALL". owner /path/to/folder/* rwklm, Any file in /folder owned by the process can be read,written to, locked, linked, mapped. Granted, the performance differente is minimal, but since you need to reboot anyway in order to re-enable it, doing it on the kernel command line "feels" more thorough.
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 Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. New password: BAD PASSWORD: it is based on a dictionary word Retype new password: passwd: all authentication tokens updated successfully. [[email protected] ~]# semanage login -a -s staff_u testacct [[email protected] ~]# semanage