[ILUG] Preserving group & passwd to another server
weeboy at conorwynne.com
Fri Dec 17 18:37:05 GMT 2004
Aidan Delaney wrote:
>On Fri, 2004-12-17 at 17:20 +0000, Conor Wynne wrote:
>>Well since I got no replies on my Oracle FS question, I've decided to
>>try again ;-0
>>I'm thinking of rsync'ing /etc from one box to the other.
>What in particular do you want to sync? /etc/hostname should probably
>be different on both hosts etc... as you've said below.
>>I know that just copying /etc/passwd & /etc/group is not sufficient.
>>But I reckon an rsync will be cool - aside from having to be carefull to
>>exclude certain files such as /etc/sysconfig/network-scripts/* and
>Copying /etc/passwd and /etc/group _is_ sufficient in a lot of cases.
>I've done it on small networks as it's more secure (and easier) than NIS
>and doesn't require a full-time admin.
I seem to remember the last time I tried it (just passwd & group) that I
could not login as any user except root. I tried "passwd user1" changed
the password and still couldn't login ;-(
Note: I forgot about /etc/shadow ;-0
>>Any particular gotchas I should look out for before I proceed?
>>Suggestions for files to exclude are most welcome.
>Please provide more information on what you want to sync. Do you have
>Apache/Samba/CUPS running on both systems?
Its an oracle server, and I pretty much need to copy everything in
/home, /oracledb & possibly /var (I'm not sure if I _should_ copy /var
at all. I certainly do not want to copy /usr as some package versions
are now newer and there are other subtle differences - e.g.: sendmail
instead of postfix.
I plan on stopping the oracle processes on the live server, and then
remounting the fs read-only prior to the rsync.
Re-installing oracle is an issue, as I do not have immediate access to
the media (doing it all via ssh).
So I'm hoping that I can simply rsync the oracle binaries - once I
where they installed it ;-0
I'll also need to copy the startup scripts and make sure cronjobs are
still run (if they exist that is).
Ah sure it'll be grand as testing will have to be done prior to
Any suggestions are most welcome.
More information about the ILUG