From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c785d8fd79fda27b X-Google-Attributes: gidfee84,public From: feral@vaxxine.com (Ron Feral) Subject: Re: Recovering Lost passwd file Date: 1999/03/11 Message-ID: <7c8qfd$c3$3@news.vaxxine.com>#1/1 X-Deja-AN: 453805472 References: Content-Type: Text/Plain; charset=US-ASCII X-Complaints-To: usenet@news.vaxxine.com X-Trace: news.vaxxine.com 921169197 387 209.5.212.35 (11 Mar 1999 16:19:57 GMT) Organization: None Mime-Version: 1.0 NNTP-Posting-Date: 11 Mar 1999 16:19:57 GMT Newsgroups: comp.unix.osf.osf1 Assuming that your passwd.pag and passwd.dir as in good shape and still the default locations you can probably just whip up a PERL script to use getpwent() for each user's information. You can also use the equiv. C function if you prefer. Just loop through and write the stuff out in the passwd file format. This is simpler than bothering with the DBM stuff. In article , ellefson@visi.com says... >I need to know if there is a way to recover a what appears to be a zeroed >out passwd file by manipulating the passwd.pag.