[scponly] chroot and FreeBSD 5.1-CURRENT

Stefano Biella sbiella at dmint.net
Fri Nov 14 15:49:10 EST 2003


hi all,

I've a problem with scponly-3.8 (installed from updated ports tree) and 
FreeBSD 5.1-CURRENT with the chroot feature.

I've created with "make jail" the chrooted environment (attached you 
will find the ls -lR of the directory tree) but when I try to login I 
receive  only the "Connection cloded" message:

$ sftp test3 at 10.1.1.150
Connecting to 10.1.1.150...
Password:
Connection closed
$

There are nothing on the server's console or in the server's logs.

Does someone knows if the chroot scritp works fine with FreeBSD 5.1 and 
if all the needed files for the chrooted environment are copied by the 
script?

Are there some patch or modifications that must be made to the 
setup_chroot.sh?

Many thank's in advance for your help :-)



total 10
drwxr-xr-x  2 root   wheel  512 Nov 14 11:39 bin
drwxr-xr-x  2 root   wheel  512 Nov 14 11:39 etc
drwxr-xr-x  2 test3  wheel  512 Nov 14 11:39 incoming
drwxr-xr-x  2 root   wheel  512 Nov 14 11:39 lib
drwxr-xr-x  7 root   wheel  512 Nov 14 11:39 usr

./bin:
total 1986
-rwxr-xr-x  1 root  wheel  106580 Nov 14 11:39 chmod
-rwxr-xr-x  1 root  wheel   18912 Nov 14 11:39 echo
-rwxr-xr-x  1 root  wheel   89164 Nov 14 11:39 ln
-rwxr-xr-x  1 root  wheel  570016 Nov 14 11:39 ls
-rwxr-xr-x  1 root  wheel   89948 Nov 14 11:39 mkdir
-rwxr-xr-x  1 root  wheel  451720 Nov 14 11:39 mv
-rwxr-xr-x  1 root  wheel   97980 Nov 14 11:39 pwd
-rwxr-xr-x  1 root  wheel  451776 Nov 14 11:39 rm
-rwxr-xr-x  1 root  wheel   85976 Nov 14 11:39 rmdir

./etc:
total 40
-rw-r--r--  1 root  wheel  40960 Nov 14 11:41 pwd.db

./incoming:

./lib:
total 2054
-rwxr-xr-x  1 root  wheel   886504 Nov 14 11:39 libc.so.5
-rwxr-xr-x  1 root  wheel  1103692 Nov 14 11:39 libcrypto.so.3
-rwxr-xr-x  1 root  wheel    55056 Nov 14 11:39 libz.so.2

./usr:
total 10
drwxr-xr-x  2 root  wheel  512 Nov 14 11:39 bin
drwxr-xr-x  2 root  wheel  512 Nov 14 11:39 lib
drwxr-xr-x  3 root  wheel  512 Nov 14 11:39 libexec
drwxr-xr-x  4 root  wheel  512 Nov 14 11:39 local
drwxr-xr-x  2 root  wheel  512 Nov 14 11:39 sbin

./usr/bin:
total 46
-rwxr-xr-x  1 root  wheel   7004 Nov 14 11:39 chgrp
-rwxr-xr-x  1 root  wheel   7676 Nov 14 11:39 groups
-rwxr-xr-x  1 root  wheel   7676 Nov 14 11:39 id
-rwxr-xr-x  1 root  wheel  22428 Nov 14 11:39 scp

./usr/lib:
total 188
-rwxr-xr-x  1 root  wheel  191840 Nov 14 11:39 libssh.so.2

./usr/libexec:
total 154
-rwxr-xr-x  1 root  wheel  133180 Nov 14 11:39 ld-elf.so.1
drwxr-xr-x  2 root  wheel     512 Nov 14 11:39 openssh
-rwxr-xr-x  1 root  wheel   19152 Nov 14 11:39 sftp-server

./usr/libexec/openssh:

./usr/local:
total 4
drwxr-xr-x  2 root  wheel  512 Nov 14 11:39 bin
drwxr-xr-x  2 root  wheel  512 Nov 14 11:39 lib

./usr/local/bin:
total 224
-rwxr-xr-x  1 root  wheel  202584 Nov 14 11:39 rsync

./usr/local/lib:

./usr/sbin:
total 8
-rwxr-xr-x  1 root  wheel  7004 Nov 14 11:39 chown



More information about the scponly mailing list