Error Locking Group File
Contents |
Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie (RHEL5) Not able to delete/add user : unable to lock group/password file User Name Remember Me? Password Linux - Newbie This Linux forum linux useradd error locking group file is for members that are new to Linux. Just starting out and have a question? error in locking authority file If it is not in the man pages or the how-to's this is the place! Notices Welcome to LinuxQuestions.org, a friendly and active /usr/bin/xauth: error in locking authority file Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. error in locking authority file xauthority Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? 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. If you need to reset your password, click here. Having a problem logging in? Please
Xauth Error In Locking Authority File Root Xauthority
visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Page 1 of 3 1 23 > Search this Thread 02-06-2014, 06:03 AM #1 sakshi.garg23 LQ Newbie Registered: Feb 2014 Posts: 12 Rep: (RHEL5) Not able to delete/add user : unable to lock group/password file Hi, Can anyone please guide me in the following situation : I am trying to delete a user and getting error : [B]userdel: unable to lock group file and while trying to add user, getting error : useradd: unable to lock password file Below is the exact commands and output i am getting : [root@hostname ~]#userdel -r
by: [ date ] [ thread ] [ subject ] [ author ] On
Startx Error In Locking Authority File
Mon, 28 Feb 2005 11:09:39 +1030 Michael Selge
successful test runs, one machine was (almost) completely screwed up after the process. It may be interesting to know that all this is taking place on rather "antique" Red Hat 9 systems. I have http://www.danielschneller.com/2008/04/stale-etcgrouplock-etcgshadowlock-on.html not had the time to double check whether the following still holds true for more http://www.webhostingtalk.com/showthread.php?t=477592 modern systems, any comments are appreciated. The update logs contained a strange line: useradd: unable to lock group file Well, while the message itself is one of the more explicit ones, I could not understand what would be causing a lock on the group file. There is indeed a useradd command in the upgrade script, however it is the only one, error in and the update takes place right after a reboot. Hence no other process could possibly hold a lock on /etc/group. Looking at the /etc directory I found these two files: /etc/group.lock and /etc/gshadow.lock. I was quite surprised, when I could readily add a new group manually on the affected machine with the exact same command line from the update script. After that a quick sweep over all production systems that are to be upgraded revealed, error in locking that each and every one of them contained the two files named above, usually with a creation date at about the time of their initial setups. So how could any of those ever have been upgraded successfully? Apparently my manual useradd succeeded as well... Turns out that the .lock files are not just simple flags. At first I thought they were just by their presence acting as a signal to any command trying to change the contents of the group files. Apparently that's not the case. Their content is relevant as well: They both contain the process ID (PID) of the command that last acted upon the /etc/group and /etc/gshadow files. Unfortunately due to a bug described in a RedHat Errata Entry (on RH Desktop 3, not specifically RH9) those files do not get properly unlocked, when the useradd command exits (even normally). So you get a stale lock file lying around. Next time useradd tries to modify the group files, it will not complain if there is no process currently running that has the PID denominated by the .lock file! This is really nasty, because it will work almost every time you try, but there is of course a realistic chance that some random process will just by chance get the same PID the first useradd once had and be running at the tim
Forums Dedicated Server unable to lock shadow group file If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 6 of 6 Thread: unable to lock shadow group file Tweet Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 01-14-2006,01:00 PM #1 DjMiX View Profile View Forum Posts View Forum Threads Web Hosting Guru Join Date Nov 2004 Location Lausanne, Switzerland Posts 260 unable to lock shadow group file Hello all, While using the "groupadd" function on my personal server, I get back this error message: "unable to lock shadow group file" Does anyone have an idea on how to fix this ? Regards Reply With Quote 0 01-14-2006,04:14 PM #2 Patrick View Profile View Forum Posts View Forum Threads Security Ninja Join Date Mar 2003 Location Canada Posts 8,908 Google isn't showing anything... but just taking a long shot at it, maybe it's because the shadow file is currently in use?