-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproftpd.conf
126 lines (88 loc) · 2.69 KB
/
proftpd.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes, reload proftpd after modifications, if
# it runs in daemon mode. It is not required in inetd/xinetd mode.
#
# Includes DSO modules
Include /etc/proftpd/modules.conf
# If set on you can experience a longer connection delay in many cases.
IdentLookups off
#配置服务器名
ServerName "niracler FTP Server"
#设置服务器运行模式,独立服务,或者被监管
ServerType standalone
#设置为默认服务器
DefaultServer on
# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
#设置关闭IPv6支持
UseIPv6 off
#设置服务器接受请求的端口
Port 21
#设置被动模式使用的端口范围
PassivePorts 60000 65535
#设置用户上传文件的权限掩码
Umask 000 000
#设置用户被chroot锁定到的各自的Home目录
DefaultRoot ~
#关闭欢迎信息显示
DeferWelcome off
#如果显示欢迎信息,则指定显示的文件
DisplayLogin welcome.msg
#指定切换文件夹时,显示的欢迎信息
DisplayChdir .message true
#设置日志
TransferLog /var/log/proftpd/xferlog
SystemLog /var/log/proftpd/proftpd.log
MultilineRFC2228 on
ShowSymlinks on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
ListOptions "-l"
DenyFilter \*.*/
<IfModule mod_dynmasq.c>
# DynMasqRefresh 28800
</IfModule>
#设置服务器进程运行使用的用户
User proftpd
#设置服务器进程运行使用的组
Group nogroup
# (such as xinetd)
MaxInstances 30
# Normally, we want files to be overwriteable.
AllowOverwrite on
<IfModule mod_quotatab.c>
QuotaEngine off
</IfModule>
<IfModule mod_ratio.c>
Ratios off
</IfModule>
# Delay engine reduces impact of the so-called Timing Attack described in
# http://www.securityfocus.com/bid/11430/discuss
# It is on by default.
<IfModule mod_delay.c>
DelayEngine on
</IfModule>
<IfModule mod_ctrls.c>
ControlsEngine off
ControlsMaxClients 2
ControlsLog /var/log/proftpd/controls.log
ControlsInterval 5
ControlsSocket /var/run/proftpd/proftpd.sock
</IfModule>
<IfModule mod_ctrls_admin.c>
AdminControlsEngine off
</IfModule>
<Directory "~/学生作业" >
Umask 000 # 解决学生作业子目录无法上交的权限问题
<Limit RMD DELE RETR>
DenyGroup student
</Limit>
</Directory>
<Directory "~/资源共享" >
Umask 000 # 解决学生作业子目录无法上交的权限问题
<Limit RMD DELE STOR>
DenyGroup student
</Limit>
</Directory>
# Include other custom configuration files
Include /etc/proftpd/conf.d/