×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

哪位大侠帮俺看看我这个proftpd.conf的设置有什么问题?如果不加最后跟MYSQL连就没问题。

本文发表在 rolia.net 枫下论坛#
# To have more informations about Proftpd configuration
# look at : http://www.proftpd.org/
#
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName "ProFTPD Default Installation"
ServerType inetd
DefaultServer on

# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022

# 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 user and group that the server normally runs at.
User nobody
Group nogroup

# Normally, we want files to be overwriteable.
<Directory /*>
AllowOverwrite on
</Directory>

#########################################################################
# #
# Uncomment lines with only one # to allow basic anonymous access #
# #
#########################################################################
### A basic anonymous configuration, no upload directories.
# <Anonymous ~ftp>
# User ftp
# Group ftp
### 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

### It is wise when making an 'ftp' user that you either block its
### ability to login either via /etc/login.access or my giving it
### an invalid shell.
### Uncomment this if the 'ftp' user you made has an invalid shell

# RequireValidShell off

### We want 'welcome.msg' displayed at login, and '.message' displayed
### in each newly chdired directory.
# DisplayLogin welcome.msg
# DisplayFirstChdir .message

### Limit WRITE everywhere in the anonymous chroot
# <Limit WRITE>
# DenyAll
# </Limit>

# </Anonymous>

DefaultRoot ~
TimeoutNoTransfer 6000
SQLConnectInfo proftpd@206.54.167.20:3306 root PASSWORD
SQLGroupAuth off
SQLAuthTypes Crypt Plaintext Empty
SQLAuthoritative off
SQLDefaultUID 65533
SQLDoAuth on
SQLHomedirOnDemand on
SQLUserTable users
SQLUsernameField username
SQLPasswordField password
SQLHomedirField homedir
SQLShellField shell更多精彩文章及讨论,请光临枫下论坛 rolia.net
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / 哪位大侠帮俺看看我这个proftpd.conf的设置有什么问题?如果不加最后跟MYSQL连就没问题。
    本文发表在 rolia.net 枫下论坛#
    # To have more informations about Proftpd configuration
    # look at : http://www.proftpd.org/
    #
    # This is a basic ProFTPD configuration file (rename it to
    # 'proftpd.conf' for actual use. It establishes a single server
    # and a single anonymous login. It assumes that you have a user/group
    # "nobody" and "ftp" for normal operation and anon.

    ServerName "ProFTPD Default Installation"
    ServerType inetd
    DefaultServer on

    # Port 21 is the standard FTP port.
    Port 21
    # Umask 022 is a good standard umask to prevent new dirs and files
    # from being group and world writable.
    Umask 022

    # 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 user and group that the server normally runs at.
    User nobody
    Group nogroup

    # Normally, we want files to be overwriteable.
    <Directory /*>
    AllowOverwrite on
    </Directory>

    #########################################################################
    # #
    # Uncomment lines with only one # to allow basic anonymous access #
    # #
    #########################################################################
    ### A basic anonymous configuration, no upload directories.
    # <Anonymous ~ftp>
    # User ftp
    # Group ftp
    ### 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

    ### It is wise when making an 'ftp' user that you either block its
    ### ability to login either via /etc/login.access or my giving it
    ### an invalid shell.
    ### Uncomment this if the 'ftp' user you made has an invalid shell

    # RequireValidShell off

    ### We want 'welcome.msg' displayed at login, and '.message' displayed
    ### in each newly chdired directory.
    # DisplayLogin welcome.msg
    # DisplayFirstChdir .message

    ### Limit WRITE everywhere in the anonymous chroot
    # <Limit WRITE>
    # DenyAll
    # </Limit>

    # </Anonymous>

    DefaultRoot ~
    TimeoutNoTransfer 6000
    SQLConnectInfo proftpd@206.54.167.20:3306 root PASSWORD
    SQLGroupAuth off
    SQLAuthTypes Crypt Plaintext Empty
    SQLAuthoritative off
    SQLDefaultUID 65533
    SQLDoAuth on
    SQLHomedirOnDemand on
    SQLUserTable users
    SQLUsernameField username
    SQLPasswordField password
    SQLHomedirField homedir
    SQLShellField shell更多精彩文章及讨论,请光临枫下论坛 rolia.net
    • up