Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-11-2003, 03:06 AM   #1
Senior Member
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
Lock file

I found the below problem in the RH system , when one user is changing the password by the command "passwd " , the another can't change the password at the same time , because it will first first locks /etc/.pwd.lock to prevent concurrent updates
the file /etc/passwd , I tried to change the mode of .pwd.lock to 777 , it still can't allow the another to login at the same time , can I disable the lock password file function ? if not can suggest what I can do except remove the file ? thx.
Old 10-11-2003, 03:11 AM   #2
Col Panic
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 93

Rep: Reputation: 15
It's locked to preserve the sanity of the file. I wouldn't recommend chmod on it at all, if it even works. you probably can not modify the file in two or more instances simultaneously


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
modem lock file? ankscorek Linux - Hardware 4 11-19-2005 05:58 AM
How to lock a file satimis Linux - General 2 03-09-2005 06:50 PM
Can't read lock file /tmp/.X0-lock squinn Linux - Newbie 3 07-13-2004 04:42 PM
can't create lock file? Class Zero Linux - Newbie 3 01-30-2002 06:24 AM
red !lock file blistfix Linux - General 0 08-28-2001 07:03 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:53 AM.

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