Bug 724909

Summary: rsync now needs username
Product: Red Hat Enterprise Linux 5 Reporter: Christian Rose <menthos>
Component: rsyncAssignee: Vojtech Vitek <vvitek>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.7CC: hripps, toracat
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-23 10:20:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***