[scponly] Scponly 4.8 on Debian 4.0 64bit

Valkuma valkuma at googlemail.com
Tue Mar 16 16:46:35 EDT 2010


Scponly is compiled with this options: --enable-winscp-compat
--enable-sftp-logging-compat --enable-scp-compat
--enable-chrooted-binary --enable-passwd-compat

after compiling i have changed #define PROG_SFTP_SERVER to 64bit path.
and in my script i add the patz for ld.so

my tree in jail is:
.
|-- bin
|   |-- chgrp
|   |-- chmod
|   |-- chown
|   |-- echo
|   |-- ln
|   |-- ls
|   |-- mkdir
|   |-- mv
|   |-- pwd
|   |-- rm
|   `-- rmdir
|-- dev
|   `-- null
|-- download
|-- etc
|   |-- ld.so.cache
|   |-- ld.so.conf
|   `-- passwd
|-- html
|   `-- test
|-- lib
|   |-- libacl.so.1
|   |-- libattr.so.1
|   |-- libc.so.6
|   |-- libcom_err.so.2
|   |-- libcrypt.so.1
|   |-- libdl.so.2
|   |-- libkeyutils.so.1
|   |-- libnsl.so.1
|   |-- libnss_compat-2.7.so
|   |-- libnss_compat.so.2
|   |-- libpam.so.0
|   |-- libpam_misc.so.0
|   |-- libpthread.so.0
|   |-- libresolv.so.2
|   |-- librt.so.1
|   |-- libselinux.so.1
|   `-- libutil.so.1
|-- lib64
|   `-- ld-linux-x86-64.so.2
`-- usr
    |-- bin
    |   |-- groups
    |   |-- id
    |   |-- passwd
    |   `-- scp
    |-- lib
    |   |-- libcrypto.so.0.9.8
    |   |-- libgssapi_krb5.so.2
    |   |-- libk5crypto.so.3
    |   |-- libkrb5.so.3
    |   |-- libkrb5support.so.0
    |   |-- libz.so.1
    |   `-- sftp-server
    `-- lib64
        `-- sftp-server



Need i to recompile it ?

scp works with some errors

scponly[13753]: Unable to find "LOG_SFTP" in the environment
scponly[13753]: Found "USER" and setting it to "globalgameport.com"
scponly[13753]: Unable to find "SFTP_UMASK" in the environment
scponly[13753]: Unable to find "SFTP_PERMIT_CHMOD" in the environment
scponly[13753]: Unable to find "SFTP_PERMIT_CHOWN" in the environment
scponly[13753]: Unable to find "SFTP_LOG_LEVEL" in the environment
scponly[13753]: Unable to find "SFTP_LOG_FACILITY" in the environment
scponly[13753]: Environment contains "USER=globalgameport.com"
scponly[13753]: running: /usr/bin/scp -t /html (username:
globalgameport.com(1004), IP/port: 78.46.62.72 57840 22)
scponly[13753]: about to exec "/usr/bin/scp" (username:
globalgameport.com(1004), IP/port: 78.46.62.72 57840 22)

SFTP doesn't works.

server2:~# sftp sampleuser at server2:/html      Connecting to server2...
sampleuser at server2's password:
Connection closed
server2:~#







More information about the scponly mailing list