[scponly] Freebsd 4.7 + chroot + winscp
Pascal Filipovicz
Pascal.Filipovicz at univ-nancy2.fr
Thu Dec 5 08:54:52 EST 2002
Hi all,
I'm trying to use scponly on a Freebsd box with chrooted environment (the client will use Winscp 2.0).
It works without the chroot : the client can list, copy and delete files or directories.
But when i'm using scponlyc, i can only list the directory.
That's my configuration :
FreeBSD : version 4.7
Scponly : version 3.4
./configure --enable-chrooted-binary
/etc/shells:
/usr/local/bin/scponly
/usr/local/sbin/scponlyc
/etc/passwd :
ftpuser1:*:1005:21::0:0:User Test Ftp 1:/usr/local/www/intranetFtp:/usr/local/sbin/scponlyc
The directory :
/usr/local/www/intranetFTP
intranetFtp
|
|-- .ssh
| |--authorized_keys <--- i use ssh1 keys.
|-- bin
| |-- chmod
| |-- echo
| |-- ln
| |-- ls
| |-- mkdir
| |-- mv
| |-- pwd
| |-- rm
| `-- rmdir
|-- etc
|-- incoming
|-- lib
| |-- libc.so.4
| |-- libcrypto.so.2
| |-- libssh.so.2
| `-- libz.so.2
`-- usr
|-- bin
| |-- groups
| `-- scp
|-- lib
| |-- libc.so.4
| |-- libcrypto.so.2
| |-- libssh.so.2
| `-- libz.so.2
|-- libexec
| |-- openssh
| `-- sftp-server
|-- local
| |-- bin
| `-- lib
`-- sbin
`-- chown
-----------------------------------------
I forgot perhaps something, but i don't know what. Can you help me ?
Ps :excuse my bad english.
-- Pascal Filipovicz ---
More information about the scponly
mailing list