Cut and paste the passwd and shadow files (the parts that you need from the old into the new)
then run a script to recreate the home directories like the one below:

for i in $(awk -F: '{print $6}' /etc/passwd | grep home); do
echo $i ; sleep 1 ; cd /etc/skel ; ls -al ;
        for n in $(ls -al); do
        echo "$n"
        mkdir -p .$i
        cp -rR $n .$i;
        done
done


On Wed, 2003-12-17 at 10:39, joseph mpora wrote:
I recently installed RedHat 9.0 (Publishers' edition). I would like to
import user account information from a backup of /etc/* from my previous
installation (redhat 7.2).

I tried using kdiff3 (similar to sdiff) to merge the two files but there
are several conflicting (mainly system) accounts. I don't want to wreck
the fresh install!

I didn't use the upgrade option because the publishers' edition doesn't
provide one

Does anyone know of a method (or tool) that can acomplish this?

Regards

Joseph



---------------------------------------------
This service is hosted on the Infocom network
http://www.infocom.co.ug
-- 
****************                          *****************************
Kiggundu Mukasa                          # Computer Network Consultancy###
KYM-NET LTD.                             # Intranets & Internet Solutions#
Plot 80 Kanjokya Street
P.O. Box 24284 Kampala, Uganda             
Tel:     +256 77 972255
         +256 71 221141
Fax:     +256 31 262122
*************************************************************************

Reply via email to