Simple one-way synchronisation of user password list between servers
Posted
by Renaud Bompuis
on Server Fault
See other posts from Server Fault
or by Renaud Bompuis
Published on 2009-06-03T04:04:12Z
Indexed on
2010/05/21
9:10 UTC
Read the original article
Hit count: 336
Using a RedHat-derivative distro (CentOS), I'd like to keep the list of regular users (UID over 500), and group (and shadow files) pushed to a backup server.
The sync is only one-way, from the main server to the backup server.
I don't really want to have to deal with LDAP or NIS.
All I need is a simple script that can be run nightly to keep the backup server updated.
The main server can SSH into the backup system.
Any suggestion?
Edit:
Thanks for the suggestions so far but I think I didn't make myself clear enough.
I'm only looking at synchronising normal users whose UID is on or above 500.
System/service users (with UID below 500) may be different on both system.
So you can't just sync the whole files I'm afraid.
© Server Fault or respective owner