Solved

DEC OSF/1 - /etc/passwd locked

Posted on 1998-04-22
4
309 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
Comment Utility
What do you mean by "locked" ? If you success in editing them
by hand, there are not locked !
0
 

Author Comment

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

763 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

14 Experts available now in Live!

Get 1:1 Help Now