LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Copying User accounts between two servers (https://www.linuxquestions.org/questions/linux-newbie-8/copying-user-accounts-between-two-servers-695944/)

stuaz 01-08-2009 04:32 PM

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.

sasem 01-08-2009 04:52 PM

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å

stuaz 01-08-2009 05:20 PM

Quote:

Originally Posted by sasem (Post 3401638)
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å

Translation please.. ?

William (Dthdealer) 01-08-2009 08:02 PM

Google Translator:

Quote:

Hello! I am completely new to server and Dreambox, I want to get a server in Linux to cardsheara with someone. Can anyone help me with this and I thought buying a Dreambox 500s. Please can someone help me fix dream box and a server, I will be very grateful if, thanks o bye

chrism01 01-08-2009 08:05 PM

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.

stuaz 01-09-2009 02:42 AM

Quote:

Originally Posted by chrism01 (Post 3401782)
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.


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.