proftp.conf
Code:
ServerName "snoopy.de"
#ServerType inetd
ServerType standalone
ServerAdmin snoopy@snoopy.de
#ServerIdent on "FTP Server ready"
DeferWelcome off
DefaultServer on
AuthPAM on
#AuthPAMAuthoritative off
#AuthPAMConfig <other_name>
Port 21
#Port 0
SocketBindTight on
Umask 022
User nobody
Group nogroup
<Directory /*>
AllowOverwrite on
HiddenStor on
#HideNoAccess on
</Directory>
#<Directory /*.ftp*>
# <Limit ALL>
# DenyAll
# IgnoreHidden on
# </Limit>
#</Directory>
#PathAllowFilter "^[a-zA-Z0-9_.-]+$"
#PathAllowFilter "^[a-zA-Z0-9 _.-]+$"
#PathDenyFilter "(\.ftp)|(\.ht)[a-z]+$"
#PathDenyFilter "\.ftp[a-z]+$"
#AllowFilter "^[a-zA-Z0-9@~ /,_.-]*$"
DenyFilter "%"
MaxInstances 30
#UseReverseDNS off
#IdentLookups off
#TimeoutStalled 300
#ScoreboardPath /var/run/proftpd
TransferLog /var/log/xferlog
LogFormat default "%h %l %u %t \"%r\" %s %b"
#LogFormat auth "%v [%P] %h %t \"%r\" %s"
#LogFormat write "%h %l %u %t \"%r\" %s %b"
#ExtendedLog /var/log/proftpd.access_log WRITE,READ write
#ExtendedLog /var/log/proftpd.auth_log AUTH auth
##ExtendedLog /var/log/proftpd.paranoid_log ALL default
#DefaultRoot ~/public_html public,!users
#MaxLoginAttempts 3
#RequireValidShell yes
#AuthUserFile /var/proftpd/authfiles/passwd
#AuthGroupFile /var/proftpd/authfiles/group
#LDAPServer "localhost"
#LDAPPrefix "dc=your,dc=domain,dc=top"
#LDAPDN "cn=YourDNUser,dc=your,dc=domain,dc=top"
#LDAPDNPass "YourDNUserPassword"
Ratio on # enable module
# UserRatio ftp 0 0 0 0
# HostRatio anyhost.domain.top 0 0 0 0 # leech access (default)
# GroupRatio proftpd 100 10 5 100000 # 100:1 files, 10 file cred
# AnonRatio auser@domain.top 1 0 1 0 # 1:1 ratio, no credits
# UserRatio * 5 5 5 50000 # special default case
#
# Setting "Ratios on" without configuring anything else will enable
# leech mode: it logs activity and sends status messages to the ftp
# client, but doesn't restrict traffic.
<Anonymous ~ftp>
# After anonymous login, daemon runs as:
User ftp
Group public
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Limit the maximum number of anonymous logins
MaxClients 10
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin msgs/welcome.msg
DisplayFirstChdir .message
# Deny write operations to all directories, underneath root-dir
# Default is to allow, so we don't need a <Limit> for read operations.
#<Directory *>
<Limit WRITE>
DenyAll
</Limit>
#</Directory>
#
# Only uploads into incomming directory are allowed...
#<Directory incoming>
#
# Umask 017
#
# # ... so deny read/write
# <Limit READ WRITE DIRS>
# DenyAll
# </Limit>
#
# # ... allow file storing, but not other writes
# <Limit STOR CWD CDUP>
# AllowAll
# </Limit>
#
#</Directory>
</Anonymous>
<VirtualHost 192.168.0.6>
ServerName "spiele-net.de"
ServerAdmin snoopy@snoopy.de
DeferWelcome off
DefaultRoot /http/www.spiele-net.de/
AuthUserFile /var/auth/virtual.passwd
AuthGroupFile /var/auth/group
<Directory />
AllowOverwrite on
</Directory>
</VirtualHost>
virtual.passwd
Code:
daniel:passwort:spiele-net.de Verwalter:/http/www.spiele-net.de:/bin/false
Das Passwort ist nicht veschlüsselt
ftpgroup
Code:
ftpuser::102:daniel
------------------
[Dieser Beitrag wurde von real_snoopy am 13. Dezember 2000 editiert.]
[Dieser Beitrag wurde von real_snoopy am 13. Dezember 2000 editiert.]
Lesezeichen