LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Lock file (https://www.linuxquestions.org/questions/linux-software-2/lock-file-102696/)

ust 10-11-2003 02:06 AM

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.

Col Panic 10-11-2003 02:11 AM

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


All times are GMT -5. The time now is 06:05 PM.