From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,35736cacb2fa8d0e X-Google-Attributes: gidfee84,public From: Nikola Milutinovic Subject: Re: Convert EnHANCED to base files passwd Date: 2000/04/17 Message-ID: <38FAD6F2.F8C6B379@ev.co.yu>#1/1 X-Deja-AN: 612162809 Content-Transfer-Encoding: quoted-printable References: <8d6qbk$g1o$1@crispin.sim.ucm.es> X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 Organization: EPS Elektrovojvodina Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 "Jes=FAs M. Palero Cuenca" wrote: > = > We have machines with C2 security (protected password database auth.db)= and > the hashed basic user databese created (passwd.pag y passwd.dir). > = > We question is: > Somebody knows any utility that with this information (auth.db and > passwd.pag and passwd.dir) could recreate the /etc/passwd file? (if the= > /etc/passwd file dont exists becuase it has been deleted, for example).= > = > We knows the utilities convauth, convuser, mkpasswd, etc. for changing = from > /etc/passwd to these files, but we want the reverse change. Well, you've definitely lost information. Some fields of /etc/passwd are = never converted to auth.db. So, /etc/passwd.pag|dir are your only copy of the information. They are created using ndbm library (man ndbm). Your only be= t is to find or write a utility that will open that hashed version of /etc/passwd= and read out all records. It shouldn't be too difficult. Nix.