[nflug] /home, MySQL and user replication

Cyber Source peter at thecybersource.com
Mon Jan 15 08:49:24 EST 2007


Darin Perusich wrote:
> the easiest and most efficient method to do this would be to setup a NIS
> or LDAP services for your users/groups and use autofs to share /home to
> all of your systems. if you have a machine that you can use as a
> NIS/LDAP and NFS server it should be pretty simple. i would use LDAP
> over NIS personally but the choice is yours.
>
> the only problem is replicating your passwd/shadow/group files is what
> to do if you have a mix of different distros on you network. the
> contents of said files are not likely to be the same between debian,
> SuSE, fedora, etc. if you have all debian systems then use ssh/scp to
> copy those files. use ssh-keygen to ssh keys on one machine as root,
> them copy the id_rsa.pub from that machine to authorized_key2 on the
> remote machine. you'll then be able to login with being prompted for a
> password/phrase and you can use scp to do the copy.
>
> Wolfe, Robert wrote:
>   
>> Recently installed Debian 4 on my other Sun Ultra 5 and would like to
>> replicate my /etc/passwd and /etc/shadow files on that machine from my
>> Debian 3.1 machine along with all the /home directories as well so users can
>> use both the 3.1 and 4.0 boxes and still have the same files in their home
>> directories on both machines.  However, I am having a heck of a time trying
>> to figure this out and how to get it into a cron job.
>>
>> Any pointers to information on an easy way to do this would be very much
>> greatly appreciated.
>>
>>     
>
>   
Also, if your going to do this, the user ID's need to be the same on all
boxes!
_______________________________________________
nflug mailing list
nflug at nflug.org
http://www.nflug.org/mailman/listinfo/nflug



More information about the nflug mailing list