Skip to ContentSkip to Footer
Start of content
- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- General
- >
- Lock file
General
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-10-2003 07:04 PM
10-10-2003 07:04 PM
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.
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.
Solved! Go to Solution.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-11-2003 08:57 AM
10-11-2003 08:57 AM
Solution
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.
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.
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.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
End of content
United States
Hewlett Packard Enterprise International
Communities
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP