Hi listers,

I've just started to test rsync. However, after going through the internet
documents, I still have some issues that I think you all can help me with so
as not to reinvent the wheel. Please respond to the scenario I describe
below:

I know SSH is recomended, but for now I have to work with rsh.
I have installed sudo, and have set up the /.rhosts file. I know it's not
tight security. I currently use "sudo rcp" in my remote file transfer
scripts which are executed by a user account which owns all the files in the
application directory structure.

This is how rcp is working for us:
bbankmain{opmain}/usr/bank/opmain>rcp -r temp bbankbz:/home/bank/opbz
permission denied.

bbankmain{opmain}/usr/bank/opmain>sudo rcp -r temp bbankbz:/home/bank/opbz
Password:
bbankbz{opbz}/home/bank/opbz>ls -l temp
total 896
-rw-rw-r--   1 root     other     446871 Dec 13 08:54 rsynctest.txt

This is how rsh is working for us:
bbankmain{opmain}/usr/bank/opmain>rsh bbankbz
Password:
Login incorrect
login: Connection closed.
bbankmain{opmain}/usr/bank/opmain>

I used to have user level security working, but I disabled it since my
scripts need to change permissions and ownerships with root priviledges.
So I'm only using /.rhosts with authorized machine names.
There is no user account named "opmain" on machine bbankbz , that's why we
get the "Login incorrect" error.

Trying to rsh as root as root gives:
# rsh bbankbz
Not on system console
Connection closed.
Which is OK for security reasons.

Now, I tried this rsync command to transfer the same temp directory and its
contents (as in the rsh example above) to machine bbankbz with the following
results:

bbankmain{opmain}/usr/bank/opmain>sudo rsync -av
bbankbz:/home/bank/opbz/temp
sh: rsync: not found
unexpected EOF in read_timeout
bbankmain{opmain}/usr/bank/opmain>which rsync
/usr/local/bin/rsync
bbankmain{opmain}/usr/bank/opmain>rsync -av bbankbz:/home/bank/opbz/temp
permission denied.
unexpected EOF in read_timeout
bbankmain{opmain}/usr/bank/opmain>/bin/su
Password:
# rsync -av bbankbz:/home/bank/opbz/temp
rsync: not found
# /usr/local/bin/rsync -av bbankbz:/home/bank/opbz/temp
sh: rsync: not found
unexpected EOF in read_timeout
# /usr/local/bin/rsync -av bbankbz:/home/bank/opbz/temp /usr/bank/opmain
sh: rsync: not found
unexpected EOF in read_timeout

Any feedback would be appreciated!

Regards,

Knowledge is power, but it is only useful if it is shared!

Denmark W.






Reply via email to