Re: getting rsync to work +automating password line

2005-02-11 Thread Wayne Davison
On Thu, Feb 10, 2005 at 12:57:30PM -0500, Gil Naveh wrote:
> I type rsync -a e ServerB/... I get a prompt for #password:
> I tried rsync with the option --password-file=/name/of/file/with/password
> but it still asked me for password!

As the manpage states (though probably not as well as it should), the
password options are just for signing on to an rsync daemon.  Ssh is
prompting you for a password, and rsync does not have any options that
try to control that -- you can consult the ssh docs to figure out how to
setup a sign-in key or configure some kind of host-based authorization.
There's even a link to a tutorial on this subject on the resources page
of the rsync web site (though the site appears to be down at the moment;
you can access the page through the google cache if you google for
"site:www.jdmz.net ssh password" and click on the Cache link).

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


Re: getting rsync to work +automating password line

2005-02-11 Thread Paul Slootman
On Thu 10 Feb 2005, Gil Naveh wrote:
> 
> The --rsync-path=PATH did the work. :)
> Is there a doc that shows all the options that comes with rsync? - when I
> tried #rsync --help
> I did not get the --rsync-path option.

Hmm, my copy does show that... (2.6.3)
However, the man page is the usual location for full documentation with
unix commands.

> Finally, the next step for me is to automate rsync through crontab. But when
> I type rsync -a e ServerB/... I get a prompt for #password:
> I tried rsync with the option --password-file=/name/of/file/with/password
> but it still asked me for password!

The file contains a single line with the password? There is newline
after the password? The file is readable for the process (but not for
others!) ?

You could also put the password in the environment variable
RSYNC_PASSWORD. Check that the environment can't be read by all users on
your system.


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


RE: getting rsync to work +automating password line

2005-02-10 Thread Gil Naveh
Thanks Paul,

The --rsync-path=PATH did the work. :)
Is there a doc that shows all the options that comes with rsync? - when I
tried #rsync --help
I did not get the --rsync-path option.
Finally, the next step for me is to automate rsync through crontab. But when
I type rsync -a e ServerB/... I get a prompt for #password:
I tried rsync with the option --password-file=/name/of/file/with/password
but it still asked me for password!

Thanks much,
gil

-Original Message-
From: Paul Slootman [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 12:13 PM
To: Gil Naveh
Cc: rsync@lists.samba.org
Subject: Re: getting rsync to work


On Thu 10 Feb 2005, Gil Naveh wrote:
>
> I am trying to do a very simple thing, just transfer a file from machine A
> to machine B using rsync with ssh.
>
> This is what I'm typing:
>  # rsync -a -e ssh serverB:/tmp/rsync/test1 n serverA:/tmp/rsync/
>  #  password: X
>
> This is what I get:
> # bash: rsync: command not found
> # rsync: connection unexpectedly closed (0 bytes received so far)
[receiver]
> # rsync error: error in rsync protocol data stream (code 12) at io.c(359)
>
> Basically it seems to go wrong after logging into the remote machine when
it
> says "bash: rsync: command not found".
>
> rsync is definitely installed on both machines which are Solaris9 and is
in
> the user's
> environment path. So I don't understand why it says "rsync: command not
> found"...?

.profile etc. is typically not read when executing a command via ssh.
That's why the  --rsync-path=PATH  option was invented.
Add that (with the correct path to the rsync binary on the remote!)
and things should start working.

PS: what's the 'n' doing between /test1 and serverA: in your command?
I hope it's a typo...


Paul Slootman

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


Re: getting rsync to work

2005-02-10 Thread Paul Slootman
On Thu 10 Feb 2005, Gil Naveh wrote:
> 
> I am trying to do a very simple thing, just transfer a file from machine A
> to machine B using rsync with ssh.
> 
> This is what I'm typing:
>  # rsync -a -e ssh serverB:/tmp/rsync/test1 n serverA:/tmp/rsync/
>  #  password: X
> 
> This is what I get:
> # bash: rsync: command not found
> # rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
> # rsync error: error in rsync protocol data stream (code 12) at io.c(359)
> 
> Basically it seems to go wrong after logging into the remote machine when it
> says "bash: rsync: command not found".
> 
> rsync is definitely installed on both machines which are Solaris9 and is in
> the user's
> environment path. So I don't understand why it says "rsync: command not
> found"...?

.profile etc. is typically not read when executing a command via ssh.
That's why the  --rsync-path=PATH  option was invented.
Add that (with the correct path to the rsync binary on the remote!)
and things should start working.

PS: what's the 'n' doing between /test1 and serverA: in your command?
I hope it's a typo...


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


getting rsync to work

2005-02-10 Thread Gil Naveh
Hello,

I am trying to do a very simple thing, just transfer a file from machine A
to machine B using rsync with ssh.

This is what I'm typing:
 # rsync -a -e ssh serverB:/tmp/rsync/test1 n serverA:/tmp/rsync/
 #  password: X

This is what I get:
# bash: rsync: command not found
# rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
# rsync error: error in rsync protocol data stream (code 12) at io.c(359)

Basically it seems to go wrong after logging into the remote machine when it
says "bash: rsync: command not found".

rsync is definitely installed on both machines which are Solaris9 and is in
the user's
environment path. So I don't understand why it says "rsync: command not
found"...?

Any thoughts comments would be appreciated.

Thanks,
gil

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


Re: Trouble getting rsync to work....

2002-02-25 Thread tim . conway

Need more information - the rsyncd.conf, for instance.  The hosts.allow, 
for another.
You're best to start off with a basic conf file, and add complications one 
at a time until it breaks, then figure out what was wrong with that single 
item.  Running rsyncd from inetd really helps with that - each session 
reads the file as it is at that moment, so testing can go really fast... 
one xterm editing the file and writing it after each mod, another testing 
after each mod.
Start with this:
+++start of /etc/rsyncd.conf++
[testmodule]
path = /tmp
+++end of /etc/rsyncd.conf++
Tools@willy
/etc/mail>grep rsync /etc/inetd.conf /etc/services 
/etc/inetd.conf:rsync   stream  tcp nowait  root/usr/bin/rsync 
rsyncd --daemon
/etc/services:rsync 873/tcp rsyncd  # rsync 
daemon
Tools@willy
/etc/mail>
Don't forget to HUP your inetd after modifying services and inetd.conf


Tim Conway
[EMAIL PROTECTED]
303.682.4917
Philips Semiconductor - Longmont TC
1880 Industrial Circle, Suite D
Longmont, CO 80501
Available via SameTime Connect within Philips, n9hmg on AIM
perl -e 'print pack(, 
19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), 
".\n" '
"There are some who call me Tim?"




Warren <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
02/24/2002 11:59 PM

 
To: [EMAIL PROTECTED]
cc: (bcc: Tim Conway/LMT/SC/PHILIPS)
    Subject:Trouble getting rsync to work
Classification: 



I have read the MAN page and the Rsync page and have set up an 
/etc/rsync.conf but I can't seem to get it working. I have tried starting 
the 
daemon and adding the correct entry on the server hosts.allow file, but I 
just get "Connection refused" from the server.

Surely this can't be that difficult, but I am at a bit of a loss. Can 
anyone 
help?

Regards,
Brad

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




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



Re: Trouble getting rsync to work....

2002-02-24 Thread Martin Pool

On 25 Feb 2002, Warren <[EMAIL PROTECTED]> wrote:
> I have read the MAN page and the Rsync page and have set up an 
> /etc/rsync.conf but I can't seem to get it working. I have tried starting the 
> daemon and adding the correct entry on the server hosts.allow file, but I 
> just get "Connection refused" from the server.
> 
> Surely this can't be that difficult, but I am at a bit of a loss. Can anyone 
> help?

Please post the command and rsyncd.conf that you're using.

-- 
Martin 

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



Trouble getting rsync to work....

2002-02-24 Thread Warren

I have read the MAN page and the Rsync page and have set up an 
/etc/rsync.conf but I can't seem to get it working. I have tried starting the 
daemon and adding the correct entry on the server hosts.allow file, but I 
just get "Connection refused" from the server.

Surely this can't be that difficult, but I am at a bit of a loss. Can anyone 
help?

Regards,
Brad

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