convert passwd

From: Said El Mamouni <Said.Elmamouni_at_math.univ-nantes.fr>
Date: Wed, 28 Jul 2004 12:03:11 +0200

dear

I want to use my /etc/passwd file on another system (redhat).
To do this i try to add it on the redhat system but it doesnt work.

on the redhat :

#someone told me that i have to erase my crypt passwd so i do this :

awk -F ':' '{print $1 '::' $2 ':' ......$7}' /tmp/passwd.tru64 > /tmp/passwd.new

#then

cp /etc/passwd /etc/passwd.ori
cp /etc/shadow /etc/shadow.ori

cat /etc/passwd /tmp/passwd.new > /etc/passwd

pwconv

the result is that i can logon whitout password my shadow is correct but without password

i think i have to convert (hash) my tru 64 passwd and not use awk to erase it.

Can you help me ?
my tru64 is a 4.0F

S.El Mamouni
Received on Wed Jul 28 2004 - 10:06:23 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:44 NZDT