<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Lock file in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/lock-file/m-p/3090955#M74418</link>
    <description>What you are seeing is the result of a design decision in Unix in general. Files are essantially structureless, which allows the "everything is a file" attitude. This also means that without additional layers of software you can not have a record level lock on a file. So you either have to lock the file itself or a proxy (the .pwd.lock in your case) and no short of removing it and/or killing the process that holds it I do not see a a possibility to have a second process updating the file while the first tries to change the password. Obviously removing the lock does open another can of worms.&lt;BR /&gt;As I said this is a Unix decision. E.g. the hp OpenVMS operating system supports indexed files native and changing a passwort locks exactly this users record in the "passwd" file.</description>
    <pubDate>Sat, 11 Oct 2003 15:57:14 GMT</pubDate>
    <dc:creator>Martin P.J. Zinser</dc:creator>
    <dc:date>2003-10-11T15:57:14Z</dc:date>
    <item>
      <title>Lock file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lock-file/m-p/3090954#M74417</link>
      <description>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&lt;BR /&gt;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.</description>
      <pubDate>Sat, 11 Oct 2003 02:04:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lock-file/m-p/3090954#M74417</guid>
      <dc:creator>juno2</dc:creator>
      <dc:date>2003-10-11T02:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Lock file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lock-file/m-p/3090955#M74418</link>
      <description>What you are seeing is the result of a design decision in Unix in general. Files are essantially structureless, which allows the "everything is a file" attitude. This also means that without additional layers of software you can not have a record level lock on a file. So you either have to lock the file itself or a proxy (the .pwd.lock in your case) and no short of removing it and/or killing the process that holds it I do not see a a possibility to have a second process updating the file while the first tries to change the password. Obviously removing the lock does open another can of worms.&lt;BR /&gt;As I said this is a Unix decision. E.g. the hp OpenVMS operating system supports indexed files native and changing a passwort locks exactly this users record in the "passwd" file.</description>
      <pubDate>Sat, 11 Oct 2003 15:57:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lock-file/m-p/3090955#M74418</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2003-10-11T15:57:14Z</dc:date>
    </item>
  </channel>
</rss>

