Bug 724909 - rsync now needs username
Summary: rsync now needs username
Keywords:
Status: CLOSED DUPLICATE of bug 724041
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rsync
Version: 5.7
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Vojtech Vitek
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-22 09:44 UTC by Christian Rose
Modified: 2015-03-04 23:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-23 10:20:38 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Christian Rose 2011-07-22 09:44:46 UTC
Description of problem:

The following used to work in RHEL 5.6 and below:

[root@host-2 ~]# /usr/bin/rsync --archive --one-file-system --numeric-ids --delete --quiet LOCALDIR host-1:REMOTEDIR
[root@host-2 ~]#

However, after updating to RHEL 5.7, the commandline above no longer works.


How reproducible:

Always.

  
Actual results:

Results after updating to RHEL 5.7:

[root@host-2 ~]# /usr/bin/rsync --archive --one-file-system --numeric-ids --delete --quiet LOCALDIR host-1:REMOTEDIR
usage: ssh [-1246AaCfgkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]
           [-D [bind_address:]port] [-e escape_char] [-F configfile]
           [-i identity_file] [-L [bind_address:]port:host:hostport]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-R [bind_address:]port:host:hostport] [-S ctl_path]
           [-w tunnel:tunnel] [user@]hostname [command]
rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) at io.c(600) [sender=3.0.6]
[root@host-2 ~]#


Expected results:

[root@host-2 ~]# /usr/bin/rsync --archive --one-file-system --numeric-ids --delete --quiet LOCALDIR host-1:REMOTEDIR
[root@host-2 ~]#


Additional info:

If I add the username option, and specify root@ before the hostname, it works:

[root@host-2 ~]# /usr/bin/rsync --archive --one-file-system --numeric-ids --delete --quiet LOCALDIR root@host-1:REMOTEDIR
[root@host-2 ~]#

However, "man rsync" still claims the username option should be optional:

"Access via remote shell:
   Pull: rsync [OPTION...] [USER@]HOST:SRC... [DEST]
   Push: rsync [OPTION...] SRC... [USER@]HOST:DEST"

...but it seems now it isn't.

Comment 1 Akemi Yagi 2011-07-22 22:28:53 UTC
This is a duplicate of #724041.

Comment 2 Tomas Hoger 2011-07-23 10:20:38 UTC

*** This bug has been marked as a duplicate of bug 724041 ***


Note You need to log in before you can comment on or make changes to this bug.