[Linux-Biella] xinetd e ftp
rick
ricper.linux a tiscali.it
Gio 25 Nov 2004 02:06:21 CET
Ciao a tutta la ml.
<Preambolo>
incuriosito dalla discussione sulla procedura di installazione della gentoo, l'ho provata anch'io.
Effettivamente non si può dire che sia comoda. Se poi si sceglie di ricompilare proprio tutto come ho fatto (stage1!) io ci vuole MOOOLTA PAZIENZA (laptop ACER 525TX, P3 700 MHz ~ 45 ore di compilazione per l'intero sistema esclusi Open-Office e Kde. Occupazione totale dischi ~ 2Gb con tutto quello che può servire e anche di più)!!!!!.
Però il catafalco adesso pedala, azzo se pedala. Windows, come sempre, neanche da mettere a confronto. Indietro anni luce.
</Preambolo>
Ora, il mio problema sta in xinetd. Non avvia la sessione ftp su richiesta. Infatti da una console sullo stesso portatile se digito:
15-rick-rick > ftp 192.168.1.103
Connected to 192.168.1.103.
421 Service not available, remote server has closed connection
Se invece braso xinetd e a manina alzo il servizio proftpd, mi connetto perfettamente.
Ho smanettato a lungo sui vari file, e su google un tizio ha una configurazione apparentemente identica alla mia, ma funzionante.
Dove sto sbagliando / dimenticando?
Ringrazio subito di cuore chi vorrà aiutarmi.
Per riavviare il servizio dopo aver smanettato sui file uso:
rickntb root # /etc/init.d/xinetd stop
* WARNING: you are stopping a boot service.
* Stopping xinetd... [ ok ]
rickntb root # /etc/init.d/xinetd start
* Starting xinetd... [ ok ]
rickntb root #
rickntb root # ps axf | grep xinetd
4638 pts/2 S+ 0:00 | | \_ grep xinetd
4635 ? Ss 0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -reuse
il file di configurazione /etc/xinetd.conf è ...
defaults
{
only_from = 192.168.1. localhost
instances = 60
log_type = SYSLOG authpriv info
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /etc/xinetd.d
Il file /etc/xinetd.d/proftpd é ...
#
# ProFTPd FTP daemon - http://www.proftpd.org
#
service ftp
{
flags = REUSE
socket_type = stream
instances = 30
wait = no
user = root
server = /usr/sbin/proftpd
log_on_success = HOST PID
log_on_failure = HOST
disable = no
}
in /etc/hosts.allow c'è (per il momento)
ALL:ALL a ALL
il file /etc/proftpd/proftpd.conf è ...
#ServerType standalone
ServerType inetd
DefaultServer on
Umask 022
ServerName "rickntb"
ServerIdent on "FTP server"
DisplayConnect /etc/proftpd/connect.msg
DisplayLogin /etc/proftpd/login.msg
Bind "rickntb"
ServerAdmin Admin a this.domain.topdomain
IdentLookups off
UseReverseDNS off
Port 21
TimesGMT off
MaxInstances 30
MaxLoginAttempts 3
TimeoutLogin 300
TimeoutNoTransfer 120
TimeoutIdle 120
User ftp
Group nogroup
DirFakeUser off nobody
DirFakeGroup off nobody
DefaultTransferMode binary
AllowForeignAddress on
AllowRetrieveRestart on
AllowStoreRestart on
DeleteAbortedStores off
TransferRate RETR 100000
TransferRate STOR 40
TransferRate STOU 40
TransferRate APPE 40
SystemLog /var/lib/log/secure
#gp_random_username_length 6
#gp_random_password_length 6
#gp_randomize_case lower
#gp_useradd_root_path /home/ftp
#gp_useradd_upload_path /upload
#gp_html_path /var/lib/www/ftp.html
#gp_welcome_name welcome.msg
<IfModule mod_tls.c>
TLSEngine off
TLSRequired on
TLSVerifyClient off
TLSProtocol TLSv1
TLSLog /var/lib/log/proftpd_tls.log
TLSRSACertificateFile /etc/gproftpd/gproftpd.pem
</IfModule>
<Anonymous /home/rick>
User rick
Group rick
AnonRequirePassword on
DisplayLogin /etc/proftpd/login.msg
DisplayFirstChdir .msg
AllowOverwrite off
#<Limit LOGIN>
# Allow from all
# Deny from all
#</Limit>
<Limit ROOT_DIR_ALLOW RETR LIST NLST MDTM SIZE STAT CWD XCWD PWD XPWD CDUP XCUP>
AllowAll
</Limit>
<Limit ROOT_DIR_DENY DELE APPE STOR STOU SITE_CHMOD SITE_CHGRP RNFR RNTO MKD XMKD RMD XRMD>
DenyAll
</Limit>
<Directory /home/rick/home/rick/ftpupload/*>
AllowOverwrite on
<Limit UPLOAD_DIR_ALLOW LIST NLST MDTM SIZE SITE STAT APPE RETR STOR STOU MKD XMKD CWD XCWD PWD XPWD CDUP XCUP>
AllowAll
</Limit>
<Limit UPLOAD_DIR_DENY DELE SITE_CHMOD SITE_CHGRP RMD XRMD RNFR RNTO>
DenyAll
</Limit>
</Directory>
</Anonymous>
Il link è a posto...
16-rick-rick > ll /usr/sbin/proftpd
-rwxr-xr-x 1 root root 500840 16 nov 20:45 /usr/sbin/proftpd
dovesse servire il kernel è...
17-rick-rick > uname -a
Linux rickntb 2.6.9-gentoo-r1RickOptimized #8 Tue Nov 16 19:04:38 CET 2004 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux
Di nuovo grazie.
Ciao
Rick
Maggiori informazioni sulla lista
Linux