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.
|