Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Nikola Milutinovic <Nikola.Milutinovic@ev.co.yu>
Subject: Re: Convert EnHANCED to base files passwd
Date: 2000/04/17	[thread overview]
Message-ID: <38FAD6F2.F8C6B379@ev.co.yu> (raw)
In-Reply-To: 8d6qbk$g1o$1@crispin.sim.ucm.es

"Jesús 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 bet 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.



      reply	other threads:[~2000-04-17  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-14  4:00 Convert EnHANCED to base files passwd Jes�s M. Palero Cuenca
2000-04-17  4:00 ` Nikola Milutinovic [this message]
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