DEC OSF/1 - /etc/passwd locked

Posted on 1998-04-22
Medium Priority
Last Modified: 2008-03-06
/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.

Question by:olaf
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Expert Comment

ID: 2006268
What do you mean by "locked" ? If you success in editing them
by hand, there are not locked !

Author Comment

ID: 2006269
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


Accepted Solution

hajek earned 200 total points
ID: 2006270
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.


Author Comment

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


Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question