rsync without a shell

Federico Voges fvoges
Mon May 17 11:43:02 PDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 10 Jan 2003 17:20:12 -0500 (EST), 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?
>

I guess that you need a valid shell so rsync can exec rsync on the
remote host.

There's a project called rssh (http://freshmeat.net/projects/rssh/).
It's no exactly what you need but comes very close.

Basically, it's a shell that restricts just to remote exec of scp
and/or sftp (no interactive shell). 

It shouldn't be to hard to add rsync to the list of allowed commands.
You'll have to do some research on how rsync over ssh works, though.

Bye!


Federico Voges
Socio gerente

Intrasoft
Malabia 2137 14 A
(1425) Buenos Aires
Argentina

Te/Fax: 54-11-4833-5182
e-mail: fvoges at intrasoft.com.ar
Web: http://www.intrasoft.com.ar

PGP Public Key Fingerprint: A536 4595 EB6F D197  FBC1 5C3A 145C 2516

-----BEGIN PGP SIGNATURE-----
Version: PGPsdk version 1.7.1 (C) 1997-1999 Network Associates, Inc. and its affiliated companies.

iQA/AwUBPh9b0BRcJRaVKt4XEQIaKACgsmjNCIVqb7FrDSBVGIjFjvk65IYAoONC
DbZHzWhh4aWmu1MCUR+XYi+H
=CBb0
-----END PGP SIGNATURE-----





More information about the Linux-users mailing list