LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-05-2003, 05:34 AM   #1
macagent
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
Question groupadd: unable to lock group file?!


I am trying to get a 'fresh' install of RH9 running on my server. I installed everything, then ran up2date to get current.

After that, I was unable to groupadd or useradd.

Each time it gave me the unable to lock group (or passwd) file.

Yes, I am logged in as root (root is the only user on the machine thus far).

I Googled everywhere and cannot find an answer to this question. Maybe the replies to this question will help other noobs out there having the same problem.

P.S. I know my way around UNIX, but have never seen this problem before on my OSX Servers.
 
Old 08-05-2003, 05:53 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
i *think* the lock file is /etc/ptmp or somethign very similar to it, what possi8bly happened was that a previous uise creashed without removing that lockfile.
 
Old 08-05-2003, 06:11 AM   #3
macagent
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Original Poster
Rep: Reputation: 0
I can't find a file by that name. Even if I did, what would I do to fix the problem?
 
Old 08-05-2003, 06:48 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
delete it... try looking at the output of dmesg or the end of /var/log/messages to see if it's sayign somethign more indepth there
 
Old 09-11-2003, 02:22 AM   #5
precore
LQ Newbie
 
Registered: Sep 2003
Posts: 1

Rep: Reputation: 0
Remove Lock file

I don't know if you ever got this fixed however I ran into the same problem and this fixed it.

needed to remove a lock file
remove hidden file .pwck.lock or .pwd.lock in /etc/
http://kb.redhat.com/view.php?eid=353
 
Old 10-08-2003, 02:07 AM   #6
ksteward
LQ Newbie
 
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
i bumped into the same problem. Turned out that there were stale lock files in /etc: passwd.lock, gshadow.lock, shadow.lock, etc. Deleting these re-enabled the groupadd function.

-keith
 
Old 07-08-2007, 05:31 PM   #7
Ordinary12
Member
 
Registered: Feb 2007
Posts: 140

Rep: Reputation: 15
I'm using Ubuntu Feisty Fawn version and I need to know which files I should delete. I have two of each one. One has a red box in the top right corner while there other does not. Each file has one like this. Should I delete them both or just one of them?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
APCUPSD - Unable to create UPS lock file sirpimpsalot Linux - Software 6 11-18-2012 11:24 AM
sudo :adduser: unable to lock password file khamdy Linux - General 9 10-13-2010 05:26 AM
Unable to mount share due to file lock Rivitir Linux - Networking 0 07-18-2005 10:12 AM
userdel: unable to lock password file asc3ndant Linux - General 1 06-20-2003 01:07 PM
unable to lock password file beefyd Linux - Security 3 09-08-2002 09:33 AM


All times are GMT -5. The time now is 01:55 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration