> I have moved the master.passwd file from a FreeBSD 2.1.0 system to a
> FreeBSD 3.3 system and all seems to work fine. Users can login with
> no problem, but in closer inspection I notice that accounts manually
> moved but which have the same passwd and the root user's passwd(which
> has not changed) hash are different on each system. Does anyone know
> the reason for this? If the one way crypt has changed how can the old
> master.passwd file satisfactorily be pasted into the new one?
It's probably because some of the passwords use MD5 and others use DES.
Both types of passwords can be used in the same master.passwd, as far as
I know, without any problem.
--
Giorgos Keramidas, <kera...@ceid.upatras.gr>
"What we have to learn to do, we learn by doing." [Aristotle]
To Unsubscribe: send mail to majo...@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
> "Nathaniel Schein" <nsc...@prisa.com> writes:
>
> > I have moved the master.passwd file from a FreeBSD 2.1.0 system to a
> > FreeBSD 3.3 system and all seems to work fine. Users can login with
> > no problem, but in closer inspection I notice that accounts manually
> > moved but which have the same passwd and the root user's passwd(which
> > has not changed) hash are different on each system. Does anyone know
> > the reason for this? If the one way crypt has changed how can the old
> > master.passwd file satisfactorily be pasted into the new one?
>
> It's probably because some of the passwords use MD5 and others use DES.
> Both types of passwords can be used in the same master.passwd, as far as
> I know, without any problem.
Maybe, but more likely it's just because there's a salt in the
encryption (see the man page for crypt(3)). If two accounts have
the same password, they may well (will probably, in fact) have
completely different encrypted password entries in the passwd file.
This makes brute-force attacks harder.
Be well.
Lowell