rsync without a shell

Net Llama! netllama
Mon May 17 11:43:06 PDT 2004


On Fri, 10 Jan 2003, Federico Voges wrote:

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

Actually, i tried rssh, but the very limited dox don't explain how to
specify the allowed commands.  Is this domented somewhere other than the
rssh man page?

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J Friedman				netllama at linux-sxs.org
Linux Step-by-step & TyGeMo		     http://netllama.ipfox.com


More information about the Linux-users mailing list