I need to move my mail server and apache to another computer that will run F7. How do I backup my users and keep their passwords and mail files? Shoud I backup /home? Where are the user passwords stored?
Thanks,
El Lunes, 4 de Junio de 2007 20:39, Knute Johnson escribió:
I need to move my mail server and apache to another computer that will run F7. How do I backup my users and keep their passwords and mail files? Shoud I backup /home? Where are the user passwords stored?
You might want also to save the /etc/groups and /etc/shadow
At 11:39 AM -0700 6/4/07, Knute Johnson wrote:
I need to move my mail server and apache to another computer that will run F7. How do I backup my users and keep their passwords and mail files? Shoud I backup /home? Where are the user passwords stored?
User account info is stored in:
/etc/passwd /etc/shadow /etc/group /etc/gshadow
When setting up the new system, before /any/ user accounts are created, take all the entries in the general user ID range (>500) and append them to the corresponding files on the new system. Then a restored /home and any other directories that might have those UIDs in them will show properly.
/root is also a "home" directory.
/var/spool/mail may contain user mail, which is also often stored in user home directories.
/var/www usually contains Apache httpd's files, and they may also be stored in user home directories.
/var/lib/mysql contains the MySQL databases.
/var may contain other useful directories, depending on what is running. Tomcat may serve from /var, or from wherever Tomcat is installed.
/etc should be backed up, in order to have access to the current config files for Apache httpd, sendmail, etc.
You should set up and test the new server completely before taking down the old server. You will probably have forgotten something that you want from the old server.
At 11:39 AM -0700 6/4/07, Knute Johnson wrote:
I need to move my mail server and apache to another computer that will run F7. How do I backup my users and keep their passwords and mail files? Shoud I backup /home? Where are the user passwords stored?
User account info is stored in:
/etc/passwd /etc/shadow /etc/group /etc/gshadow
When setting up the new system, before /any/ user accounts are created, take all the entries in the general user ID range (>500) and append them to the corresponding files on the new system. Then a restored /home and any other directories that might have those UIDs in them will show properly.
/root is also a "home" directory.
/var/spool/mail may contain user mail, which is also often stored in user home directories.
/var/www usually contains Apache httpd's files, and they may also be stored in user home directories.
/var/lib/mysql contains the MySQL databases.
/var may contain other useful directories, depending on what is running. Tomcat may serve from /var, or from wherever Tomcat is installed.
/etc should be backed up, in order to have access to the current config files for Apache httpd, sendmail, etc.
You should set up and test the new server completely before taking down the old server. You will probably have forgotten something that you want from the old server.
Thanks very much. What are the passwd- and group- directories? Are they some sort of backup?
At 2:21 PM -0700 6/4/07, Knute Johnson wrote:
At 11:39 AM -0700 6/4/07, Knute Johnson wrote:
I need to move my mail server and apache to another computer that will run F7. How do I backup my users and keep their passwords and mail files? Shoud I backup /home? Where are the user passwords stored?
User account info is stored in:
/etc/passwd /etc/shadow /etc/group /etc/gshadow
...
Thanks very much. What are the passwd- and group- directories? Are they some sort of backup?
As "ls -l /etc/{passwd,shadow,group,gshadow}" will show you, they are files. Feel free to read their manpages: "man 5 passwd shadow group gshadow".
On 06/05/2007 02:42:10 PM, Ric Moore wrote:
You should set up and test the new server completely
before taking down the
old server. You will probably have forgotten something
that you want from
the old server.
Been there, got the t-shirt. I hate when that happens!! Ric
Only got one t-shirt?? What's _wrong_ with you man? You try to learn from experience or something?
(Me? I got a fair closet full of t-shirts 8-))
(Note for the humor and/or sleep impaired: I'm trying to fun Ric just for the joy of it. No harm intended.)
On Tue, 2007-06-05 at 15:31 -0400, Tom Freeman wrote:
On 06/05/2007 02:42:10 PM, Ric Moore wrote:
You should set up and test the new server completely
before taking down the
old server. You will probably have forgotten something
that you want from
the old server.
Been there, got the t-shirt. I hate when that happens!! Ric
Only got one t-shirt?? What's _wrong_ with you man? You try to learn from experience or something?
(Me? I got a fair closet full of t-shirts 8-))
(Note for the humor and/or sleep impaired: I'm trying to fun Ric just for the joy of it. No harm intended.)
No harm taken!! FINALLY got my old crusty USRobotics MODEM to work... darn near forgot everything I knew about modems... this damn thing is touchy. Yes, I'm now out here in the toolies in Rural SouthSide Virginia where there is no DSL at all. I finished up the job at the Happy Farm in NC and am now here working on my Uncle's place. I installed FC7 and it'll take a month of Sundays to dnload the "fixes". <sigh>
I guess I don't need to web-browse that badly, as 3,000 pieces of email to catch up on will keep me pretty darn busy. I'm sure I've missed on on some really good flaming and I gotta catch up to become "informed".
I'M BAAACK! <chuckles> Ric