Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Stuart Fuller <stufuller@usa.net>
Subject: Re: corrupt /etc/passwd
Date: Wed, 24 Jul 2002 12:05:02 GMT	[thread overview]
Message-ID: <jq4mha.sma.ln@dadsys1.fuller.local> (raw)
In-Reply-To: onwurlo31a.fsf@cow.physics.wisc.edu

Craig Markwardt wrote:

> 
> "Nikola Milutinovic" <Nikola.Milutinovic@ev.co.yu> writes:
> 
>> "Skaghk" <skaghk@hotmail.com> wrote in message
>> news:3d3d52b5$1@eumel.hag.hilti.com...
>> > Hi there,
>> >
>> > I got a box running Tru64 V. 4.0 which got a blown up /etc/passwd. The
>> file
>> > currently consitst of 4096 characters of ASCII 0. Surprisingly users
>> > still can log in and su to root also works well. Changing passwords ist
>> > the only thing, that does not work.
>> >
>> > There are two other files /etc/passwd.dir (as bad as passwd) and
>> > /etc/passwd.pag (readable but wired passwd fragments) which I think got
>> > created while /etc/passwd has been accessed rw last time. Running
>> > mkpasswd did blow up the system completely. Restoring those two files
>> > at least brought me bak to the original state.
>> 
>> /etc/passwd.dir and /etc/passwd.pag are DBM files generated from
>> /etc/passwd by command "mkpasswd". As long as they are intact, you'll be
>> able to login, but nothing else. Restoring? Well, I suppose it can be
>> restored, but I've never seen a utility for that. Theoretically, you
>> could write a small C program to just open DBM version and read all keyes
>> and write them to STDOUT.
> 
> If the password database is still intact, and people can log in, then
> won't the command "ypcat passwd" produce a legitimate ASCII version of
> the password file?
> 
> Craig
> 

Yes, "ypcat passwd" would produce a password file -- if the user was using 
NIS for distributing passwords.  However, his initial post does not 
indicate so, and since the files /etc/passwd.{dir|pag} are present, this 
indicates a local password file.

        Stu


  reply	other threads:[~2002-07-24 12:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-23 12:57 corrupt /etc/passwd Skaghk
2002-07-23 14:11 ` Sylvain Robitaille
2002-07-24  5:32 ` Nikola Milutinovic
2002-07-24 10:04   ` Craig Markwardt
2002-07-24 12:05     ` Stuart Fuller [this message]
2002-07-24 12:24     ` Skaghk
2002-07-30 14:19       ` Michael Joosten
2002-07-31 18:42         ` Sylvain Robitaille
2002-08-05 14:42           ` Michael Joosten
2002-07-24 17:01   ` Rich Alderson
2002-07-24 18:53 ` Paul A Sand
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox