LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-08-2009, 05:32 PM   #1
stuaz
Member
 
Registered: Dec 2008
Posts: 59

Rep: Reputation: 15
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.
 
Old 01-08-2009, 05:52 PM   #2
sasem
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
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å
 
Old 01-08-2009, 06:20 PM   #3
stuaz
Member
 
Registered: Dec 2008
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by sasem View Post
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.. ?
 
Old 01-08-2009, 09:02 PM   #4
William (Dthdealer)
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Debian Testing
Posts: 99
Blog Entries: 39

Rep: Reputation: 19
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
 
Old 01-08-2009, 09:05 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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.
 
Old 01-09-2009, 03:42 AM   #6
stuaz
Member
 
Registered: Dec 2008
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by chrism01 View Post
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.
 
  


Reply

Tags
offtopic, translate


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying Files between accounts marensius Linux - Newbie 6 09-16-2008 08:25 AM
Copying MySQL and Email Accounts imangm Linux - Newbie 3 01-28-2005 06:13 AM
evolution - copying email accounts CRego3D Linux - Software 2 09-25-2004 11:42 PM
Evolution multiple accounts - servers BUG? tipaul Linux - Software 3 02-04-2004 06:58 AM
How to copy user accounts between servers glt Red Hat 8 09-02-2003 01:22 PM


All times are GMT -5. The time now is 08:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration