Re: rsync wont work

2004-03-15 Thread Tim Conway
There we are.  Thanks.  OK, you're using ssh, and you can ssh in, so we 
can assume you're getting in.
Now,  ssh [EMAIL PROTECTED] and then which rsync is different from ssh 
[EMAIL PROTECTED] which rsync.  ssh without a command starts a login shell, 
and you get your full environment.  With a command, you get a very 
stripped-down environment, which is unlikely to have /usr/local/bin in 
the path.
I can state with near unity certainty that 
rsync -vvvcrlpogtz --rsync-path=/usr/local/bin/rsync /tmp/ 
[EMAIL PROTECTED]:/tmp
will work.  Alternately, you could modify your system initialization 
scripts to get /usr/local/bin in your basic path, or symlink 
/usr/local/bin/rsync into /bin or /usr/bin.  I generally leave the system 
unmodified, and change my cmdline, but if you're setting up something for 
newbies to do their own commandlines, you'll probably end up making it 
idiot-proof.

Oh, and you didn't get the email directly because your system wanted me to 
authenticate myself.  I declined to make the effort.  I figured you could 
just read the copy from the list.

Good luck,

Tim Conway
Unix System Administration
Contractor - IBM Global Services
[EMAIL PROTECTED]

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: rsync wont work

2004-03-12 Thread Tim Conway
As you may recall from the last time I answered you, please send the same 
thing, but use 3 vs instead of only one.
rsync -vvvcrlpogtz . [EMAIL PROTECTED]:/rsync/
Since you don't know which transport you are using, we can read the output 
from the above command to find out.
You are not getting to a remote rsync process, either because the 
transport (rsh/remsh or ssh) is not getting there (only a failed 
authentication is possible, from the fact that you're getting a password 
prompt), or because once it's there, it's not finding the remote rsync 
binary(or not allowed to execute it).  Once we know you're getting a shell 
open to [EMAIL PROTECTED], we then do
(rsh || ssh) (depending on what rsync is using in your case) -l rsync 
domain.ltd which rsync
which will probably give a not found.
find where it is on that system, and try your command again with 
--rsync-path=/wherever/you/have/rsync/on/domain.ltd/rsync .

Repeating the question in exactly the same way, yet again, will not give 
the information needed to solve your problem.


Tim Conway
Unix System Administration
Contractor - IBM Global Services
[EMAIL PROTECTED]




alexus [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED]
03/12/2004 12:19 PM

To
[EMAIL PROTECTED]
cc

Subject
rsync wont work






can someone tell me what am i doing wrong?

d# rsync -vcrlpogtz . [EMAIL PROTECTED]:/rsync/
[EMAIL PROTECTED]'s password:
sh: rsync: rsync: connection unexpectedly closed (0 bytes read so far) 
rsync
error: error in rsync protocol data stream (code 12) at io.c(189)
d#

it works fine if i just specify directory instead of remote site, but 
thats
not what i need..

thanks in advance

alexus

-- 
To unsubscribe or change options: 
http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: rsync wont work

2004-03-12 Thread alexus
i'm sorry i didn't get your email, or i somehow missed it.. sorry about that

d# rsync -vvvcrlpogtz /tmp/ [EMAIL PROTECTED]:/tmp
opening connection using ssh -l root domain.ltd rsync --server -vvvlogtprcz
. /tmp
[EMAIL PROTECTED]'s password:
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(189)
_exit_cleanup(code=12, file=io.c, line=189): about to call exit(12)
d#

d# ssh [EMAIL PROTECTED]
[EMAIL PROTECTED]'s password:
Last login: Thu Mar 11 19:50:05 2004 from 66.9.147.254
Sun Microsystems Inc.   SunOS 5.9   Generic May 2002
# which rsync
/usr/local/bin/rsync
# ls -ld /usr/local/bin/rsync
-rwxr-xr-x   1 root other2217056 Mar 10 10:24 /usr/local/bin/rsync
# rsync --version
rsync  version 2.6.0  protocol version 27
Copyright (C) 1996-2004 by Andrew Tridgell and others
http://rsync.samba.org/
Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles,
  no IPv6, 64-bit system inums, 64-bit internal inums

rsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and you
are welcome to redistribute it under certain conditions.  See the GNU
General Public Licence for details.
#

I'm most likely doing something very very stupid :( or better yet not doing
something..


P.S. My very good friend works for IBM at White Plains, you might even know
him:)

- Original Message - 
From: Tim Conway [EMAIL PROTECTED]
To: alexus [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Friday, March 12, 2004 4:38 PM
Subject: Re: rsync wont work


 As you may recall from the last time I answered you, please send the same
 thing, but use 3 vs instead of only one.
 rsync -vvvcrlpogtz . [EMAIL PROTECTED]:/rsync/
 Since you don't know which transport you are using, we can read the output
 from the above command to find out.
 You are not getting to a remote rsync process, either because the
 transport (rsh/remsh or ssh) is not getting there (only a failed
 authentication is possible, from the fact that you're getting a password
 prompt), or because once it's there, it's not finding the remote rsync
 binary(or not allowed to execute it).  Once we know you're getting a shell
 open to [EMAIL PROTECTED], we then do
 (rsh || ssh) (depending on what rsync is using in your case) -l rsync
 domain.ltd which rsync
 which will probably give a not found.
 find where it is on that system, and try your command again with
 --rsync-path=/wherever/you/have/rsync/on/domain.ltd/rsync .

 Repeating the question in exactly the same way, yet again, will not give
 the information needed to solve your problem.


 Tim Conway
 Unix System Administration
 Contractor - IBM Global Services
 [EMAIL PROTECTED]




 alexus [EMAIL PROTECTED]
 Sent by: [EMAIL PROTECTED]
 03/12/2004 12:19 PM

 To
 [EMAIL PROTECTED]
 cc

 Subject
 rsync wont work






 can someone tell me what am i doing wrong?

 d# rsync -vcrlpogtz . [EMAIL PROTECTED]:/rsync/
 [EMAIL PROTECTED]'s password:
 sh: rsync: rsync: connection unexpectedly closed (0 bytes read so far)
 rsync
 error: error in rsync protocol data stream (code 12) at io.c(189)
 d#

 it works fine if i just specify directory instead of remote site, but
 thats
 not what i need..

 thanks in advance

 alexus

 -- 
 To unsubscribe or change options:
 http://lists.samba.org/mailman/listinfo/rsync
 Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html




-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html