Re: How can I export users from a server to another?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- Original Message ----- From: "Rushan Sobar" <Rushan@xxxxxxxxxx>
To: <salvador.santander@xxxxxxxxxxxxxxxxxxx>; "General Red Hat Linux discussion list" <redhat-list@xxxxxxxxxx>
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@xxxxxxxxxxxxxxxxxxx>
To: <redhat-list@xxxxxxxxxx>
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@xxxxxxxxxx?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@ur-server:/etc/shadow


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

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




--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux