From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,e4ce2f02460124d3 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-07-24 05:05:21 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!bin4.nnrp.aus1.giganews.com.POSTED!not-for-mail From: Stuart Fuller Subject: Re: corrupt /etc/passwd Newsgroups: comp.unix.tru64 Reply-To: stufuller@usa.net References: <3d3d52b5$1@eumel.hag.hilti.com> Organization: At home, in the basement User-Agent: KNode/0.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-ID: X-GC-Trace: gv1-wpurDkOoPANL2uqU0ACnbz9NOdW6b1THJULsGY= NNTP-Posting-Date: Wed, 24 Jul 2002 07:05:02 CDT X-Trace: sv3-5pfTOx0AJYDWFLGvJud/s9OA4WWM/8m9wCGm9t8g7QDTdxB7hCzAoBe8hn1WOS4nRyJOwKPQ2QURONg!nhFVVjBIZRJ5vUFYm9k0Pr36wgLUCu9lzOhhdUCuT3mb//Xk0IAWlzeCx11DJ+LhGBEyMw== X-Complaints-To: abuse@comcast.com X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Date: Wed, 24 Jul 2002 12:05:02 GMT Xref: archiver1.google.com comp.unix.tru64:8209 Craig Markwardt wrote: > > "Nikola Milutinovic" writes: > >> "Skaghk" 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