Diferencia entre revisiones de «Instalar PureFTPd»
De Wiki de BandaAncha.eu
Línea 19: | Línea 19: | ||
make | make | ||
make install-strip | make install-strip | ||
+ | |||
+ | ==Configuración== | ||
+ | |||
+ | PureFTPd se configura mendiante los [http://www.die.net/doc/linux/man/man8/pure-ftpd.8.html parametros que se le pasan al ejecutable]. | ||
+ | |||
+ | /usr/local/pureftpd/sbin/pure-ftpd -ABEHR -l mysql:/usr/local/etc/pureftpd-mysql.conf -O clf:/var/log/pureftpd.log | ||
+ | |||
+ | -A Chroot() everyone, but root. | ||
+ | -B Start the standalone server in background (daemonize). | ||
+ | -E Only allow authenticated login. Anonymous users are prohibited. | ||
+ | -H Don't resolve host names | ||
+ | -l Enable a new authentication method | ||
+ | -O clf:/var/log/pureftpd.log | ||
+ | -R Disallow users (even non-anonymous ones) usage of the CHMOD command | ||
+ | |||
+ | ==xinetd== | ||
+ | |||
+ | vi /etc/xinetd.d/pure-ftpd | ||
+ | |||
+ | y añadimos | ||
+ | |||
+ | service ftp | ||
+ | { | ||
+ | socket_type = stream | ||
+ | server = /usr/local/pureftpd/sbin/pure-ftpd | ||
+ | server_args = -AEHR | ||
+ | protocol = tcp | ||
+ | user = root | ||
+ | wait = no | ||
+ | disable = no | ||
+ | } | ||
+ | |||
+ | ==Inicio y parada automático== | ||
+ | |||
+ | cp contrib/redhat.init /etc/init.d/pureftpd | ||
+ | chmod +x /etc/init.d/pureftpd | ||
+ | chkconfig --add pureftpd | ||
==Enlaces== | ==Enlaces== | ||
* [http://www.pureftpd.org/ PureFTPd] | * [http://www.pureftpd.org/ PureFTPd] |
Revisión del 09:59 7 mar 2007
Objetivos
- Servidores vituales en diferentes IPs
- Mensajes en castellano
Proceso
wget http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.21.tar.gz tar -zxvf pure-ftpd-1.0.21.tar.gz cd pure-ftpd-1.0.21 ./configure \ --prefix=/usr/local/pureftpd \ --with-language=spanish \ --with-puredb \ --with-quotas \ --with-virtualhosts make make install-strip
Configuración
PureFTPd se configura mendiante los parametros que se le pasan al ejecutable.
/usr/local/pureftpd/sbin/pure-ftpd -ABEHR -l mysql:/usr/local/etc/pureftpd-mysql.conf -O clf:/var/log/pureftpd.log -A Chroot() everyone, but root. -B Start the standalone server in background (daemonize). -E Only allow authenticated login. Anonymous users are prohibited. -H Don't resolve host names -l Enable a new authentication method -O clf:/var/log/pureftpd.log -R Disallow users (even non-anonymous ones) usage of the CHMOD command
xinetd
vi /etc/xinetd.d/pure-ftpd
y añadimos
service ftp { socket_type = stream server = /usr/local/pureftpd/sbin/pure-ftpd server_args = -AEHR protocol = tcp user = root wait = no disable = no }
Inicio y parada automático
cp contrib/redhat.init /etc/init.d/pureftpd chmod +x /etc/init.d/pureftpd chkconfig --add pureftpd