Copying User accounts between two servers
Hello All,
I am looking at the best way to Sync User accounts between one Redhat server to another. Currently I have rsync, syncing the directories and such. But I need user accounts which are created or changed (including passwords and home directories) on Box A to be copied to Box B - say every night. Both Servers are on the same network and will be going over a secured connection (not the internet). What is the best way to do this? Thanks in advance. |
Hejsan! Jag är helt ny med server och dreambox, jag vill fixa en server i Linux för att kunna cardsheara med någon. Kan någon hjälpa mig med det här och jag tänkte köpa en dreambox 500s. Snälla kan någon hjälpa mig att fixa dreamboxen och en server jag kommer och bli mycket tacksam om det, tack o hejdå
|
Quote:
|
Google Translator:
Quote:
|
Well, rsync should be able to do all that ok. I'd recommend using rsync over ssh using authorised keys for the passwd and shadow files.
Ideally you wouldn't login as root remotely (ie direct copy), but that would mean setting up a user with sudo that could be triggered to move the files into /etc after they've been uploaded. |
Quote:
Ok, sounds simple enough as I am already familiar with rsync etc. So the only files required in this situation are: passwd shadow groups And of course the home directories. |
All times are GMT -5. The time now is 08:54 AM. |