- 论坛徽章:
- 0
|
登陆不上
#This is sjzxftp server,directed
#
###############################################
#about server base setting
ServerName "General-FTP"
ServerType inetd
#
# don't give the server banner until _after_ authentication
DeferWelcome off
#
# Some basic defaults
#
Port 21
Umask 002
TimeoutLogin 120
TimeoutIdle 600
TimeoutNoTransfer 900
TimeoutStalled 3600
#
User test
Group ftpuser
#
# Performance, let's do DNS resolution when we process the logs...
UseReverseDNS off
# Where do we put the pid files?
ScoreboardPath /ftphome2/proftpd
# Logging options
TransferLog /ftphome2/proftpd.log/xferlog.legacy
#
# Some logging formats
#
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"
#
# Global settings
#
<Global>;
DisplayLogin welcome.msg
DisplayFirstChdir readme
#
# having to delete before uploading is a pain 
#
AllowOverwrite yes
#
# Turn off Ident lookups
#
IdentLookups off
#
# Logging
#
# file/dir access
#
ExtendedLog /ftphome2/proftpd/access.log WRITE,READ write
#
#
# Record all logins
#
ExtendedLog /ftphome2/proftpd/auth.log AUTH auth
#
# Paranoia logging level....
#
</Global>;
#
# Deny writing to the base server...
#
<Limit WRITE>;
DenyAll
</Limit>;
# --------------------------------------------
# Virtual Servers start here....
#
# (Note: this is normally auto generated by a
# script written in house).
# --------------------------------------------
#
#
# This is the default server
# Gets all the connections for xm.net
#
<VirtualHost /ftphome1>;
ServerAdmin admin@xm.net
MaxLoginAttempts 2
RequireValidShell no
MaxClients 30
DefaultServer on
DefaultRoot ~ !staff
AllowOverwrite yes
# --------------------------------------------
<Directory /ftphome1/software>;
<Limit CDUP CWD STOR RNFR READ>;
AllowAll
</Limit>;
</Directory>;
#
# Limit directory upload
#
<Directory /ftphome1/upload>;
<Limit ALL>;
DenyAll
</Limit>;
<Limit CWD XCWD XCUP MKD>;
AllowAll
</Limit>;
<Limit STOR STOU>;
AllowAll
</Limit>;
</Directory>;
</VirtualHost>; |
|