glug:ProFtpd aiuto si gira per tutto il server
Giorgio Zoppi
deneb@penguin.it
Tue, 29 May 2001 13:12:26 +0200
On Tue, May 29, 2001, Andrea wrote:
> Ciao a tutti, ho un grosso problema vorrei che gli utenti del server
> potessero, via FTP, vedere solo la loro home e non girare liberamente per
> tutto il server
>
> nel file proftpd.conf ho inserito le seguenti righe ma non è cambiato nulla
>
> <VirtualHost mio.virtual.host>
> DefaultRoot ~
> </VirtualHost>
> Cosa ho sbagliato?
> Grazie andrea
Ti allego la mia configurazione di qualche anno fa, prima che cambiassimo
server ftp a causa dei continui errori di Proftpd.
Ci sono alcune peculiarita, come le directory _stat e _stat2,
che probabimente non ti servono. Questa conf. supporta le quote,
ma non il ftp anonimo. Personalmente sono un contrario al ftp anonimo
con Proftpd. (Opinione personale)
# This sample configuration file illustrates creating two
## virtual servers, and associated anonymous logins.
ServerIdent on "Penguin FTPD Server"
ServerType standalone
DefaultServer on
DefaultRoot ~
# Port 21 is the standard FTP port.
Port 21
UseReverseDNS off
MaxClients 25
MaxLoginAttempts 3
Quotas on
QuotaBlockSize 1048576
QuotaBlockName Megabytes
DefaultQuota 100
TimeoutNoTransfer 900
TimeoutStalled 3600
MultiLineRFC2228 on
LoginPasswordPrompt off
<Global>
DefaultRoot ~
ExtendedLog /var/log/ftpext.log auth,read,write
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 002
<Limit LOGIN>
Order Allow,Deny
Allow from 192.168.5.
DenyUser webmaster
</Limit>
</Global>
# 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
# Maximum seconds a data connection may "stall"
# First virtual server
<VirtualHost 127.0.0.1>
<Limit LOGIN>
Order Allow,Deny
Allow from 192.168.5.
DenyUser webmaster
</Limit>
</VirtualHost>
<VirtualHost 194.243.69.4>
<Limit LOGIN>
Order Allow,Deny
Allow from 192.168.5.
DenyUser webmaster
</Limit>
DefaultRoot ~ users,!staff
DisplayConnect /etc/welcome.msg
DisplayGoAway /etc/go.away
ServerIdent on "FTPD Dreamware.com"
ServerAdmin ftpd@penguin.it
LsDefaultOptions "-l"
PathDenyFilter "\.quota$"
Quotas on
QuotaBlockSize 1048576
QuotaBlockName Megabytes
DefaultQuota 100
QuotaType hard
QuotaExempt 1134
AllowOverwrite on
QuotaCalc on
AccessGrantMsg "Ciao, %u sei stato loggato con successo"
ExtendedLog /var/log/ftpext.log auth,read,write
AllowChmod false
TimeOutLogin 120
<Directory ~/_stat>
HideNoAccess on
<Limit WRITE CWD LIST>
DenyAll
IgnoreHidden on
</Limit>
</Directory>
<Directory ~/_stat2>
HideNoAccess on
<Limit WRITE CWD LIST>
DenyAll
IgnoreHidden on
</Limit>
</Directory>
</VirtualHost>
>
>
>
> _______________________________________________
> glug mailing list
> glug@genova.linux.it
> http://www.linux.it/mailman/listinfo/glug