Operating System - Linux
1828219 Members
1840 Online
109975 Solutions
New Discussion

Linux Mail Server Question

 
Bill Green_3
Occasional Contributor

Linux Mail Server Question

I'm moving from Red Hat Server 7.3 to 9. I want to move my user information and passwords to 9. What files do I have to move.

Any help would be most helpful.
I want my MPE
6 REPLIES 6
Stuart Browne
Honored Contributor

Re: Linux Mail Server Question

At a minimum, you need to migrate the files /etc/passwd, /etc/shadow, and /etc/group.

You will probably also want to copy their home directories (/home/), and their currently existing mail (/var/spool/mail/).

Pretty easy.
One long-haired git at your service...
Stuart Browne
Honored Contributor

Re: Linux Mail Server Question

Oh, you don't want to just flat-copy the passwd, shadow or group files.

You only want to copy out the records for UID's above 500.

The reason for this is that there are a number of pre-configured user accounts for various services, but RH put's all of these ID's below 500.
One long-haired git at your service...
Huc_1
Honored Contributor

Re: Linux Mail Server Question

What I dont understand in your question is do you move from system 7.3 to other system 9.0.

Or do you have a 7.3 system from wich you want to save/backup user's file's and setup's, then scratch the 7.3 and install 9.0 then restore user's file's and setup's?

If the above is true then Stuard Browne suggestions are the way to go .


But If you want to just go from 7.3 to 9.0 on the same system and do not have a valid reason for scratching 7.3

then

Why not upgrade from 7.3 to 9.0 this is usualy very easy just boot 9.0 (iso 1 cd) and it will ask if you want to install or upgrade. (this will keep your user's and applic in place no problem)

J-P
Smile I will feel the difference
Steven E. Protter
Exalted Contributor

Re: Linux Mail Server Question

If you have done custom configuration to Sendmail 8.11 on the 7.3 box, you might wish to NOT upgrade the mail server. Thats an option in the 9.0 upgrade process.

This upgrade will not handle custom configuration very well. If you upgrade httpd server from 1.3 to 2.0 apache, the upgrade WILL break your httpd server.

If this is a migration to new hardware, thats safer and the files above can be migrated(see the other posts).

Note that your /etc/mail/access file will need to be migrated or everyone you've put on your spam bounce list will be able to see your server again. Not good at all.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Huc_1
Honored Contributor

Re: Linux Mail Server Question

True everything is not ease, upgrade Has to be carefully planned doc must be read and backup has to be taken.

But during 7.3 to 9.0 upgrade the file that are remplaced are saved as *.rpmsave you also get a log file with what has been done !

for more on that have a look at

http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/install-guide/ch-upgrade.html

So some work/planning needed but so is the alternative way... you also have to backup plan install retore adapt to scratch and start over...

As usual there is probably more then 1 way

J-P


Smile I will feel the difference
Alexander Chuzhoy
Honored Contributor

Re: Linux Mail Server Question

Since it's a Mail server -pay attention to this:
in redhat 7.3 the sendmail.cf was in /etc folder


in redhat 9 this file (i.e. sendmail.cf)
was moved to /etc/mail folder.



Best regards.