Solved

DEC OSF/1 - /etc/passwd locked

Posted on 1998-04-22
4
314 Views
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.

Thanks
Olaf
0
Comment
Question by:olaf
  • 2
4 Comments
 
LVL 1

Expert Comment

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

Author Comment

by:olaf
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

Olaf
0
 
LVL 1

Accepted Solution

by:
hajek earned 100 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.


0
 

Author Comment

by:olaf
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..
thanks

Olaf
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now