Solved

DEC OSF/1 - /etc/passwd locked

Posted on 1998-04-22
4
315 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Using Grep to Find a file 8 91
OpenView NNM: Global Manager to Regional Manager connection fails 7 74
Sed question 2 84
Log File Creation with Header and Footer 17 94
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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 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.:

776 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