中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-06-26 17:16
中国DOS联盟论坛 » DOS软件下载 & 游戏分享 (下载室) » slimftpd.conf 的配置出错? 查看 1,320 回复 0
楼 主 slimftpd.conf 的配置出错? 发表于 2009-02-24 00:07 ·  中国 北京 联通
中级用户
★★
积分 313
发帖 162
注册 2007-04-02 06:45
19年会员
UID 83693
性别 男
状态 离线
我的配置如下:
可打开SlimFTPd.exe时,总是提示配置错误!
BindInterface All

BindPort 6990

CommandTimeout 300

ConnectTimeout 15

MaxConnections 20

LookupHosts off

<User "efw">
Password "efw123"
Mount / C:\ftproot
Mount /upload c:\
Allow / Read List
Allow /upload Write
Deny /private All
Mount /files D:\files
</User>


原 slimftpd.conf :

#########################################
## ##
## SlimFTPd Configuration Script ##
## ##
#########################################

#
# Global server variables
#

#
# The BindInterface directive specifies which network interface should be used
# to listen for incoming connections. Available options are All, LAN, WAN,
# Local, or you can specify an IP address.
#
BindInterface All

#
# The BindPort directive specifies which TCP port should be used to listen for
# incoming connections. The standard FTP port is 21.
#
BindPort 6990

#
# The CommandTimeout directive specifies how many seconds to wait for a
# connected client to issue a command before dropping the connection. The
# default is 300 (5 minutes).
#
CommandTimeout 300

#
# The ConnectTimeout directive specifies how many seconds to wait for a data
# socket to connect with a client. This value applies to both active- and
# passive-mode connections. The default is 15.
#
ConnectTimeout 15

#
# The MaxConnections directive specifies an upper limit on the number of
# connections that may be made to the server at any one time. The default is
# 20.
#
MaxConnections 20

#
# The LookupHosts directive tells SlimFTPd whether it should look up the
# corresponding host names for IP addresses when logging connections. Note
# that this may take slightly more network bandwidth and may cause a short
# delay for users during initial connection. The default is On.
#
LookupHosts off


#
# User accounts
#

#
# You may refer to the following example of a user account setup. Note that
# backslashes must be escaped for proper interpretation by the script parser
# only when they occur in a double-quoted string. For example, C:\ is legal,
# but "C:\" is not legal. Use "C:\\" instead.
#
# Use the Mount directive to attach a local file system path to a virtual file
# system path. Refer to the examples below.
#
# Use the Allow and Deny directives to set permissions on paths in the virtual
# file system. Valid permission tokens are Read, Write, List, Admin, or All to
# indicate all four permission types.
#
# Use the Password directive to set a password for a user. If no password is
# set, the user will be allowed to login without a password.
#
# Examples:
#
#<User "bob">
# Password "abc123"

# The next directive will cause all files and folders in C:\ftproot to appear
# in the server's root.
# Mount / C:\ftproot

# Now we'll allow Read and List permissions for the root and all folders
# beneath it. We'll also explicitly allow Write permission for only the
# /upload folder (which in this example exists at C:\ftproot\upload) and
# all folders beneath it. Finally, we'll explicitly deny access of any kind
# to the /private folder (which would be located at C:\ftproot\private).
# Allow / Read List
# Allow /upload Write
# Deny /private All

# Here's another mount point that would appear in the server's root as /files.
# Note that this mount point will automatically allow Read and List
# permissions as it inherits the server root's permissions defined above.
# Mount /files D:\files

#</User>
#
论坛跳转: