How can I export users from a server to another?

Rushan Sobar Rushan at mec.com.jo
Thu Apr 7 10:23:44 UTC 2005


----- Original Message ----- 
From: "Rushan Sobar" <Rushan at mec.com.jo>
To: <salvador.santander at juntadeandalucia.es>; "General Red Hat Linux 
discussion list" <redhat-list at redhat.com>
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 at juntadeandalucia.es>
> To: <redhat-list at redhat.com>
> 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 at redhat.com?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 at ur-server:/etc/shadow

/usr/bin/rsync -atu --rsh=ssh --temp-dir=/tmp --port=55555 --rsync-path=/usr/bin/rsync 
/etc/passwd root at ur-server:/etc/passwd

/usr/bin/rsync -atu --rsh=ssh --temp-dir=/tmp --port=55555 --rsync-path=/usr/bin/rsync 
/etc/group root at ur-server:/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






More information about the redhat-list mailing list