[rhn-users] account migration to RH

Steven Jones Steven.Jones at vuw.ac.nz
Fri Jun 24 01:12:42 UTC 2005


Run a test by simply physically moving the passwd, group and shadow
files across, where the user IDs are greater than 500. there might be an
issue with password encryption as the method used might differ.

You could then run a script to parse the passwd file and create a user
home directory when the UID > 500 (or what ever).

I have a really crude script to do this within kickstart, but it needs
more thought so the environment gets setup per user as well.

Eg,

#create sys admin home directories and stop them ftp'ing in
for name in `cut -d: -f1 /etc/passwd`
do
        if [ `id -u $name` -gt 499 ]
        then mkdir /home/$name
        /bin/chown -R $name:$name /home/$name
        /bin/chmod 0700 /home/$name
        echo $name >> /etc/ftpusers
        fi
done
echo "finished setting up sys admins"

regards

Thing

-----Original Message-----
From: Todd Richmond [mailto:trichmon at eou.edu] 
Sent: Friday, 24 June 2005 1:03 p.m.
To: rhn-users at redhat.com
Subject: [rhn-users] account migration to RH 

Im trying to find a straight foward way to migrate about 6000 accounts
from solaris 7 and 8 to new machines running Redhat Enterprise 3.  I do
not have to worry about moving any data just accounts and passwords. 
Has anyone found a good way of doing this?

Thanks
Todd Richmond

_______________________________________________
rhn-users mailing list
rhn-users at redhat.com
https://www.redhat.com/mailman/listinfo/rhn-users





More information about the rhn-users mailing list