*BSD News Article 26544


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
From: alan@hactar.demon.co.uk (Alan Benson)
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!decwrl!nic.hookup.net!swrinde!cs.utexas.edu!howland.reston.ans.net!pipex!demon!dis.demon.co.uk!hactar.demon.co.uk!alan
Subject: Re: Corrupt password files help needed. 
Distribution: world
References: <759514992snz@hactar.demon.co.uk>
Organization: Computing Support Services
Reply-To: alan@hactar.demon.co.uk
X-Newsreader: Simple NEWS 1.90 (ka9q DIS 1.21)
Lines: 23
Date: Tue, 25 Jan 1994 21:27:29 +0000
Message-ID: <759533249snz@hactar.demon.co.uk>
Sender: usenet@demon.co.uk

In article <759514992snz@hactar.demon.co.uk> I wrote :

>Due to what I will freely admit is my own stupidity I have managed to
>corrupt all the password files, ie passwd, master.passwd, pwd.db and
>spwd.db. I've managed to get back into the system by booting from the
>distribution disks and mounting the drive. I can then rename the rc
>and rc.local files so that the machine boots to a prompt. With rc and
>rc.local I get the login prompt, but cant login! I've tried copying
>files from another system, it didn't help. Of course I cant run
>anything to update the files because you need to be root :(

Okay, as always happens after 3 days of searching for the problem I
post a question here and solve the problems in 5 mins :) I simply had
to run pwd_mkdb :)

dv
Alan
-- 
--------------------------------------------------------------------------
Alan Benson                             |     I own the company so my
alan@hactar.demon.co.uk                 |    opinions ARE those of the
tel : (+44)522 569753                   |  company. If you have a problem
snail:21 Newport, Lincoln, LN1 3DQ, UK. |   with that see my boss (ME!)