  | |  | How can I export users from a server to another? | How can I export users from a server to another? 2005-04-07 - By Rushan Sobar
Back -- -- Original Message -- -- From: "Rushan Sobar" <Rushan@(protected)> To: <salvador.santander@(protected)>; "General Red Hat Linux discussion list" <redhat-list@(protected)> Sent: Thursday, April 07, 2005 12:08 PM Subject: Re: How can I export users from a server to another?
> -- -- Original Message -- -- > From: "Salvador Santander Guti??rrez" > <salvador.santander@(protected)> > To: <redhat-list@(protected)> > Sent: Thursday, April 07, 2005 11:39 AM > Subject: How can I export users from a server to another? > > >> Hello, list. >> We've installed a new version of RedHat Linux server and I'd want to know >> if >> it's possible to export users between servers without copying the passwd >> and >> shadow files. >> >> Thank you. >> -- >> redhat-list mailing list >> unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe >> https://www.redhat.com/mailman/listinfo/redhat-list >> > > Maybe rsync can help you doing what you want. > > type man rsync for more information. > > Regards
/usr/bin/rsync -atu --rsh=ssh --temp-dir=/tmp --port=55555 --rsync-path=/usr /bin/rsync /etc/shadow root@(protected):/etc/shadow
/usr/bin/rsync -atu --rsh=ssh --temp-dir=/tmp --port=55555 --rsync-path=/usr /bin/rsync /etc/passwd root@(protected):/etc/passwd
/usr/bin/rsync -atu --rsh=ssh --temp-dir=/tmp --port=55555 --rsync-path=/usr /bin/rsync /etc/group root@(protected):/etc/group
this rsync ur shadow / passwd / group files based on time stamp if newer file will be update Note: allow root to connect to ssh to the remote machine without passwd
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list
Earn $52 per hosting referral at Lunarpages.
|
|
 |