有用的vaftpd.conf配置方案:
#Fist relate to the host
2
3 #FTP-date port
4 connect_from_port_20=YES
5
6 #command port
7 listen_port=21
8
9 dirmessage_enable=YES
10 message_file=.message
11
12 #start with stand-alone
13 listen=YES
14
15 #start with passive mode
16 pasv_enable=YES
17
18 use_localtime=YES
19
20 write_enable=YES
21
22 connect_timeout=60
23
24 accept_timeout=60
25
26 data_connection_timeout=300
27
28 idle_session_timeout=300
29
30 max_clients=0
31 max_per_ip=0
32
33 pasv_max_port=0
34 pasv_min_port=0
35
36 ftpd_banner=Welcome to FTP_server!Thank you!
37 #banner_file=/path/file
38
39
40
41
42 #Second relate to real-user
43
44 #if enable,all non-anonymous logins are classed as "guest"
45 #Default NO
46 guest_enable=YES
47 guest_username=nobody
48
49 local_enable=YES
50
51 #rate bytes/second
52 local_max_rate=0
53
54 #Could be insteaded with the next two
55 #chroot_local_user=YES
56
57 chroot_list_enable=YES
58 chroot_list_file=/etc/vsftpd/chroot_list
59
60 userlist_enable=YES
61 userlist_deny=YES
62 userlist_file=/etc/vsftpd/user_list
63
64
65 #Third relate to anonymous
66
67
68 anonymous_enable=YES
69
70 anon_world_readable_only=YES
71
72 anon_other_write_enable=NO
73
74 anon_mkdir_write_enable=NO
75
76 anon_upload_enable=NO
77
78 deny_email_enable=YES
79 banned_email_file=/etc/vsftpd/banned_emails
80
81 no_anon_password=YES
82
83 #rate B/s
84 anon_max_rate=0
85
86 anon_umask=077
87
88 #Forth relate to secure
89
90 ascii_download_enable=YES
91 ascii_upload_enable=YES
92
93 one_process_model=NO
94
95 #relate to tcp wrappers set /etc/host.allow /etc/host.deny
96 tcp_wrappers=YES
97
98 #record download and upload
99 xferlog_enable=YES
100 xferlog_file=/var/log/vsftpd.log
101
102 #relate to wu ftp
103 xferlog_std_format=YES
104
105 nopriv_user=nobody
106
107 #the module of pam which put in /etc/pam.d/vsftp
108 pam_service_name=vsftpd
109
阅读(786) | 评论(0) | 转发(1) |