Yes, you are right, it appears to work as root only. See below:

# /usr/local/bin/rsync --rsync-path=/usr/local/bin/rsync -av temp
bbankmain:/usr
/bank/opmain
building file list ... done
temp/
temp/rsynctest.txt
temp/
wrote 447045 bytes  read 36 bytes  298054.00 bytes/sec
total size is 446871  speedup is 1.00

I got it to work with sudo as follows:

bbankbz{opbz}/home/bank/opbz>
sudo /usr/local/bin/rsync --rsync-path=/usr/local/bin/rsync -av temp
bbankmain:/usr/bank/opmain
Password:
building file list ... done
temp/
temp/rsynctest.txt
temp/
wrote 447045 bytes  read 36 bytes  298054.00 bytes/sec
total size is 446871  speedup is 1.00

Thanks,

Denmark W.

=====================================================
Previous communications:
>
> I thought you could only rsh as root?  You -do- need a fully operational
> rsh or ssh transport channel for rsync to work, and for your environment,
> it looks like the only way it's working is as root.  Correct me if I'm
> wrong.
>
> --
> Sean Berry                                                    Rentals.com
IT
> (650) 622 2641 work
[EMAIL PROTECTED]
> (650) 281 6610 mobile                        My opinions are not
necessarily
> (650) 326 6420 home                                     those of my
employer.
>
> On Wed, 13 Dec 2000, Denmark B. Weatherburn wrote:
>
> > Ok here is the results:
> >
> > bbankbz{opbz}/home/bank/opbz>rsync --rsync-path=/usr/local/bin/rsync -av
> > temp bbankmain:/usr/bank/opmain
> > permission denied.
> > unexpected EOF in read_timeout
> >
> > Any ideas?
> >
> > Denmark W.
> >
> > ----- Original Message -----
> > From: Dave Dykstra <[EMAIL PROTECTED]>
> > To: Denmark B. Weatherburn <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Wednesday, December 13, 2000 12:02 PM
> > Subject: Re: using rsync for remote transfers with rsh
> >
> >
> > > On Wed, Dec 13, 2000 at 11:52:58AM -0600, Denmark B. Weatherburn
wrote:
> > > > I then tried this:
> > > >
> > > > bbankbz{opbz}/home/bank/opbz>rsync -e /usr/local/bin/rsync -av temp
> > > > bbankmain:/usr/bank/opmain
> > > > building file list ... done
> > > >
> > > > and this:
> > > >
> > > > bbankbz{opbz}/home/bank/opbz>rsync -e /usr/local/bin/rsync -av temp
> > > > bbankmain:/usr/bank/opmain/
> > > > building file list ... done
> > > >
> > > > However, nothing gets transferred.
> > > >
> > > > Does it make sense to use sudo with rsync?
> > > >
> > > > Regards,
> > > >
> > > > Denmark W.
> > > ...
> > > > > Rsync is not able to find it's corresponding binary on the remote
> > side.
> > > > > You can tell it with --rsync-path.
> > > > >
> > > > > - Dave Dykstra
> > >
> > >
> > > No, -e is equivalent to --rsh, not --rsync-path.  Use --rsync-path
instead
> > > of -e.
> > >
> > > - Dave Dykstra
> > >
> >
> >
> >
>
>


Reply via email to