[Linux-Biella] Proftpd.conf . Come mai non ...
EMAIL_Vito_De_Toma
vito.detoma a email.it
Mar 30 Nov 2004 13:09:30 CET
riesco a farlo lavorare come dico io ????
(Non sono ammesse risposte alla Leos: "sei impedito" :) :) )
Mi spiego:
La necessità è quella di avere un utente (centro) che si connette con
password e abbia accesso completo alle cartelle /var/www/tutorial e alla
cartella /mappe.
Tutte le altre cartelle devono essere inibite.
Nel momento dell'upload di files in quelle cartelle il proprietario e il
gruppo saranno quelli di Apache2 con relativi permessi
(www-data.www-data 644).
Il mio attuale file di configurazione è:
# This sample configuration file illustrates configuring two
# anonymous directories, and a guest (same thing as anonymous but
# requires a valid password to login)
ServerName "Linsit FTP Anonymous Server"
ServerType standalone
#DefaultServer on
# Port 21 is the standard FTP port.
Port 21
Umask 022
# If you don't want normal users logging in at all, uncomment this
# next section
#<Limit LOGIN>
# DenyAll
#</Limit>
# Set the user and group that the server normally runs at.
User nobody
Group nogroup
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30
# Set the maximum number of seconds a data connection is allowed
# to "stall" before being aborted.
TimeoutStalled 300
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
#DisplayFirstChdir .message
SystemLog /var/log/ftp/ftp.log
# Deny write access from all except trusted hosts.
<Limit WRITE>
Order allow, deny
Allow from 172.16.15.
Deny from all
</Limit>
<Directory /*>
AllowOverwrite on
</Directory>
# Creazione Zone
<Anonymous /mappe>
User www-data
Group www-data
UserAlias centro www-data
AnonRequirePassword on
# Maximum clients with message
MaxClients 5 "Sorry, max %m users -- try again later"
<Directory /mappe>
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
AllowAll
</Limit>
<Limit READ>
AllowAll
</Limit>
<Limit STOR>
AllowAll
</Limit>
</Directory>
# Permit uploading and creation of new directories in
# /var/www/tutorial
<Directory /var/www/tutorial>
<Limit READ>
AllowAll
</Limit>
<Limit WRITE>
AllowAll
</Limit>
<Limit STOR MKD RMD XMKD XRMD>
AllowAll
</Limit>
</Directory>
</Anonymous>
Con questo file scrivo e leggo da /mappe ma non riesco a vedere
/var/www/tutorial.
Grazie a tutti per l'aiuto..
Maggiori informazioni sulla lista
Linux