LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Zenwalk
User Name
Password
Zenwalk This forum is for the discussion of Zenwalk Linux.

Notices


Reply
  Search this Thread
Old 11-26-2008, 05:54 AM   #1
rsamurti
Member
 
Registered: Dec 2003
Location: Mysore
Distribution: Mandrake, Libranet, Slackware
Posts: 148

Rep: Reputation: 22
How to automatically migrate users from server to client?


Hello,

I am trying to setup a network of about 50 computers in which one machine is running on Zenwalk Snapshot as server. I create users on the server. But users will be logging in from clients.

I have used nfs to export /home from server to all the clients. This is working fine.

To migrate user information I included these lines in /etc/rc.d/rc.local of the client:

rsync 172.16.5.153:/etc/passwd /etc/passwd
rsync 172.16.5.153:/etc/shadow /etc/shadow
rsync 172.16.5.153:/etc/group /etc/group
rsync 172.16.5.153:/etc/gshadow /etc/gshadow

But this is not working since I have to give the root password of the server for rsync to work.

I know that there are other better ways like NIS or OpenLDAP. But I thought of this simple method.

How to make rsync command work?

Thanks for your help,

Anand

Last edited by rsamurti; 11-26-2008 at 06:45 AM.
 
Old 11-26-2008, 06:44 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well as long as you know there are better ways then remember them for the future...

I would wonder how well this solution will work, you *might* have issues when installing new software on clients maybe... maybe not.

Anyway. IF you wish to explore rsync then I would suggest using it over ssh (using the -e ssh options) and then using a preshared key to authenticate, so no passwords are required. Other similar methods could use just an export of /etc and locally copying the file on each machine. i'd not really think rsync is generally a useful option as you will just want to nuke each of the 4 files each time, so you don't need anything clever for synchronization, just blind copies, so if you don't want to export the filesystems i'd more more likely to use scp rather than rsync anyway.
 
Old 12-09-2008, 09:35 AM   #3
rsamurti
Member
 
Registered: Dec 2003
Location: Mysore
Distribution: Mandrake, Libranet, Slackware
Posts: 148

Original Poster
Rep: Reputation: 22
I have done this as explained here:

http://wiki.zenwalk.org/index.php?ti..._NFS_and_Rsync

Anand
 
  


Reply



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
How do i migrate SAMBA server to diffrent server. Koushik Biswas Linux - Server 1 11-13-2008 08:51 AM
nfs client does not mount server-shares automatically on boot rsp Debian 2 07-29-2007 07:26 AM
HELP: Migrate to new server spacewalker Linux - Newbie 3 03-16-2007 11:44 AM
HELP: Migrate to new server spacewalker Linux - Hardware 2 03-13-2007 03:57 PM
Migrate Users and Home directory from RH 7.x to AS adjovi Red Hat 1 08-27-2006 07:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Zenwalk

All times are GMT -5. The time now is 09:23 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
Open Source Consulting | Domain Registration