On Mon, 16 Feb 2004 22:16:09 +1300, you wrote:

>Hi-ho,
>
>An upgrade/side grade question..
>
>I'm in the process of moving some services from a Redhat 7.1 based
>server, to Debian (Woody, stable, 2.4.*).
>
>I was hoping to not have to reset passwords, but I've discovered that
>the hashing is different in /etc/shadow bewteen the two
>distros/versions.
>
>I've got MD5 enabled on the Debian box, and whatever is default on the
>RedHat setup (MD5 I had assumed).
>
>I've come to this conclusion two ways, I copied and pasted a hash from
>the redhat onto a debian box, and couldn't log in with the good
>password, and if I set the password to be the same thing on both
>machines using passwd, I get different hashes..
>
>Anyone know any tricks before I start informing users their passwords
>are about to change? :-).
>
>Cheers, Chris H.
>

Hi Chris,

authconfig --enable-shadow --enablemd5

should get redhat doing what you're after, otherwise, man authconfig
should help.

You will always get a different hash value for the password, whenever
it is reset. The algorithm is one-way, and seed dependent.

I've never done this between distros... maybe you should look into
centralising authentication using an ldap depository...? (:

Now that would keep you off the streets for a while! Is your network
big enough to warrant it? Could be a fun joint CLUG project?

As ever, $0.02

Steve

Reply via email to