rsync without a shell

Andrew Mathews andrew_mathews
Mon May 17 11:43:02 PDT 2004


Net Llama! wrote:
> On Fri, 10 Jan 2003, Andrew Mathews wrote:
> 
> 
>>Net Llama! wrote:
>>
>>>I'm trying to setup rsync over ssh without giving the user a shell
>>>account.  Unfortunately, setting the user's shell to /bin/false prevents
>>>the rsync from running, as it fails with this error:
>>>rsync: connection unexpectedly closed (0 bytes read so far)
>>>rsync error: error in rsync protocol data stream (code 12)
>>>
>>>Does anyone have any suggestions?
>>>
>>
>>/sbin/nologin?
> 
> 
> protocol version mismatch - is your shell clean?
> (see the rsync man page for an explanation)
> 
> 
> any other ideas?
> 

 From the rsync man page:
You can also specify an alternative to rsh, either by using the -e 
command line option, or by setting the RSYNC_RSH environment variable.
One common substitute is to use ssh, which  offers  a  high  degree  of 
security.
[....]
RSYNC_RSH
The RSYNC_RSH environment variable allows you  to  override  the
default  shell used as the transport for rsync. This can be used
instead of the -e option.
Have you tried this?
-- 
Andrew Mathews
---------------------------------------------------------------------
   3:45pm  up 23:42,  8 users,  load average: 0.00, 0.07, 0.14
---------------------------------------------------------------------
The knowledge that makes us cherish innocence makes innocence unattainable.
		-- Irving Howe



More information about the Linux-users mailing list