hello
I'm trying to do rsync over ssh. My users use the scponlyc shell (which chroots them into their home directory.
If the user has a shell like /bin/bash then the rsync works perfectly.
However, when their shell is scponlyc, then the rsync doesn't work:
Quote:
root@pi testuser # rsync -e ssh -vvvvvv -alnz /tmp/ testuser@mercury.iskm.com:/iskm/data/testuser/test/
cmd=ssh machine=mercury.iskm.com user=testuser path=/iskm/data/testuser/test/
cmd=ssh -l testuser mercury.iskm.com rsync --server -vvvvvvnlogDtprz . /iskm/data/testuser/test/
opening connection using ssh -l testuser mercury.iskm.com rsync --server -vvvvvvnlogDtprz . /iskm/data/testuser/test/
testuser@mercury.iskm.com's password:
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
_exit_cleanup(code=12, file=io.c, line=359): entered
rsync error: error in rsync protocol data stream (code 12) at io.c(359)
_exit_cleanup(code=12, file=io.c, line=359): about to call exit(12)
|
the log below shows that the rsync daemon DID recognise the rsync request.:
Quote:
Mar 5 20:52:35 pi [30878]: running: /usr/bin/rsync --server -vvvvvvnlogDtprz . /iskm/data/testuser/test/ (username: testuser(1020), IP/port: 10.0.0.1 59188 22)
Mar 5 20:52:35 pi [30878]: failed: /usr/bin/rsync --server -vvvvvvnlogDtprz . /iskm/data/testuser/test/ with error No such file or directory(2) (username: testuser(1020), IP/port: 10.0.0.1 59188 22)
|
What could the problem be? The chrooted environment has the binaries which it should need:
Quote:
root@pi testuser # lsl bin/
total 436K
-rwxr-xr-x 1 root root 50K Mar 15 2004 busybox
lrwxrwxrwx 1 root root 7 Mar 5 10:15 chgrp -> busybox
lrwxrwxrwx 1 root root 7 Mar 5 10:15 chmod -> busybox
lrwxrwxrwx 1 root root 7 Mar 5 10:15 chown -> busybox
lrwxrwxrwx 1 root root 7 Mar 5 10:15 echo -> busybox
lrwxrwxrwx 1 root root 7 Mar 5 10:15 groups -> busybox
lrwxrwxrwx 1 root root 7 Mar 5 10:15 id -> busybox
lrwxrwxrwx 1 root root 7 Mar 5 10:15 ln -> busybox
lrwxrwxrwx 1 root root 7 Mar 5 10:15 ls -> busybox
lrwxrwxrwx 1 root root 7 Mar 5 10:15 mkdir -> busybox
lrwxrwxrwx 1 root root 7 Mar 5 10:15 mv -> busybox
lrwxrwxrwx 1 root root 7 Mar 5 10:15 pwd -> busybox
lrwxrwxrwx 1 root root 7 Mar 5 10:15 rm -> busybox
lrwxrwxrwx 1 root root 7 Mar 5 10:15 rmdir -> busybox
-rwxr-xr-x 1 root root 219K Mar 5 20:45 rsync
-rwxr-xr-x 1 root root 56K Mar 15 2004 scp
-rwxr-xr-x 1 root root 92K Mar 15 2004 sftp-server
|
does anyone have any suggestions as to the cause of this problem?
Many thanks
hamish