• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 326
  • Last Modified:

DEC OSF/1 - /etc/passwd locked

/etc/passwd and /etc/group  are locked by the system.   This happened after a system crash (bad power supply, fixed now) where dxaccounts was up and running befopre the crash.
Now I can only modify the user database by manually editing the files .   This is very annoying,   Ive searched all over and I cant find how to register them unlocked.

Thanks
Olaf
0
olaf
Asked:
olaf
  • 2
1 Solution
 
OMCommented:
What do you mean by "locked" ? If you success in editing them
by hand, there are not locked !
0
 
olafAuthor Commented:
Ok sorry,  I wasnt specific enough..

Commands such as  dXaccounts, adduser, useradd usermod, etc...    wont work,  they return with an error message stating that its in use by another user.    Even though I have nothing against useing vi for editing ,  its much more convenient using the other programs in a multi-user enviroment

Olaf
0
 
hajekCommented:
I believe that "locked" in this case means "there is a lock file", which existence indicates that the file is being updated.
Try to find file (in /etc ??) with 0 length, which can be lock candidate.


0
 
olafAuthor Commented:
Ok thanks..  I had looked for files that could be the lock..  But your suggestion of zero length got me the right file..
thanks

Olaf
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now