LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 04: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, 04: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, 05: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, 08: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, 08:05 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 02: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



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 07:25 AM
Copying MySQL and Email Accounts imangm Linux - Newbie 3 01-28-2005 05:13 AM
evolution - copying email accounts CRego3D Linux - Software 2 09-25-2004 10:42 PM
Evolution multiple accounts - servers BUG? tipaul Linux - Software 3 02-04-2004 05:58 AM
How to copy user accounts between servers glt Red Hat 8 09-02-2003 12:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:47 PM.

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
Open Source Consulting | Domain Registration