instalace scponly (debian etch)



1) instalace

apt-get install scponly

dokumentace a sikovny scripty v /usr/share/doc/scponly


2) konfigurace

a) nastavit setuid scponlyc:

chmod u+s /usr/sbin/scponlyc


b) vytvorit /dev/null v chrootu (jinak nenabehne sftp-server!)

cd /cesta/k/chroot/
mkdir dev
cd dev
mknod -m 666 null c 1 3


c) adresar chrootu musi byt pro uzivatele nezapisovatelny, vytvorit mu zapisovatelny podadresar a do /etc/passwd zapsat domovsky adresar jako:

/cesta/chroot//zapisovatelny

pak bude user po loginu prihlasen do zapisovatelneho adresare

Last update:
2007-05-23 09:12
Author:
Daniel
Revision:
1.1
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.