关于Proftp的目录权限问题

由 lelong 在 12-10-2002 20:16 发表:

关于Proftp的目录权限问题

我的FTP有五个目录:bin,incoming,etc,pub

upload,但是我不知怎样设置upload的上传功能,请各位大哥指点一下.

谢谢!


由 Glue 在 12-10-2002 20:41 发表:


给你我的例子吧

proftpd.conf

  1<anonymous ~ftp="">中   
  2  
  3下面的定义是   
  4  
  5incoming 192.168.*.* 可以读写,其他的只能写入,不能读出   
  6  
  7outgoing 则相反,除192.168.*.*外,只能读,不能写   
  8  
  9  
 10  
 11# An upload directory that allows storing files but not retrieving (READ),   
 12  
 13# list (DIRS) or creating directories.   
 14  
 15<directory *="" incoming="">   
 16  
 17AllowOverwrite off   
 18  
 19<limit dirs="" stor="">   
 20  
 21AllowAll   
 22  
 23</limit>
 24<limit read="" write="">   
 25  
 26Allow 192.168.   
 27  
 28DenyAll   
 29  
 30</limit>
 31</directory>
 32<directory *="" outgoing="">
 33<limit write="">   
 34  
 35Allow 192.168.   
 36  
 37DenyAll   
 38  
 39</limit>
 40</directory>
 41
 42__________________   
 43  
 44-_- 
 45
 46  
 47
 48
 49* * *
 50
 51  
 52_由 lelong 在 12-11-2002 17:33 发表:_   
 53  
 54
 55
 56****
 57
 58  
 59  
 60
 61
 62不行呀,大哥.   
 63  
 64这是我的配置,帮忙看看有什么问题   
 65  
 66  
 67  
 68ServerName "ProFTPD Default Installation"   
 69  
 70ServerType standalone   
 71  
 72DefaultServer on   
 73  
 74  
 75  
 76Umask 022   
 77  
 78  
 79  
 80MaxInstances 30   
 81  
 82RequireValidShell off   
 83  
 84ServerIdent off   
 85  
 86# Set the user and group that the server normally runs at.   
 87  
 88User nobody   
 89  
 90Group nobody   
 91  
 92  
 93  
 94# Normally, we want files to be overwriteable.   
 95  
 96<directory *="">   
 97  
 98AllowOverwrite on   
 99  
100</directory>   
101  
102  
103  
104# A basic anonymous configuration, no upload directories.   
105  
106<anonymous ftp="" usr="">   
107  
108User ftp   
109  
110Group ftp   
111  
112# We want clients to be able to login with "anonymous" as well as "ftp"   
113  
114UserAlias anonymous ftp   
115  
116  
117  
118# Limit the maximum number of anonymous logins   
119  
120MaxClients 10   
121  
122  
123  
124# We want 'welcome.msg' displayed at login, and '.message' displayed   
125  
126# in each newly chdired directory.   
127  
128DisplayLogin welcome.msg   
129  
130DisplayFirstChdir .message   
131  
132  
133  
134# Limit WRITE everywhere in the anonymous chroot   
135  
136#<limit write="">   
137  
138# DenyAll   
139  
140#</limit>
141<directory *="" ftp="" upload="" usr="">   
142  
143AllowOverwrite off   
144  
145<limit dirs="" stor="">   
146  
147Allowall   
148  
149</limit>
150<limit read="" write="">   
151  
152Allow 192.168.   
153  
154DenyAll   
155  
156</limit>
157</directory>
158</anonymous>
159
160  
161
162
163* * *
164
165  
166_由 lelong 在 12-11-2002 17:43 发表:_   
167  
168
169
170****
171
172  
173  
174
175
176不行呀,大哥.   
177  
178这是我的配置,帮忙看看有什么问题   
179  
180  
181  
182ServerName "ProFTPD Default Installation"   
183  
184ServerType standalone   
185  
186DefaultServer on   
187  
188  
189  
190Umask 022   
191  
192  
193  
194MaxInstances 30   
195  
196RequireValidShell off   
197  
198ServerIdent off   
199  
200# Set the user and group that the server normally runs at.   
201  
202User nobody   
203  
204Group nobody   
205  
206  
207  
208# Normally, we want files to be overwriteable.   
209  
210<directory *="">   
211  
212AllowOverwrite on   
213  
214</directory>   
215  
216  
217  
218# A basic anonymous configuration, no upload directories.   
219  
220<anonymous ftp="" usr="">   
221  
222User ftp   
223  
224Group ftp   
225  
226# We want clients to be able to login with "anonymous" as well as "ftp"   
227  
228UserAlias anonymous ftp   
229  
230  
231  
232# Limit the maximum number of anonymous logins   
233  
234MaxClients 10   
235  
236  
237  
238# We want 'welcome.msg' displayed at login, and '.message' displayed   
239  
240# in each newly chdired directory.   
241  
242DisplayLogin welcome.msg   
243  
244DisplayFirstChdir .message   
245  
246  
247  
248# Limit WRITE everywhere in the anonymous chroot   
249  
250#<limit write="">   
251  
252# DenyAll   
253  
254#</limit>
255<directory *="" ftp="" upload="" usr="">   
256  
257AllowOverwrite off   
258  
259<limit dirs="" stor="">   
260  
261Allowall   
262  
263</limit>
264<limit read="" write="">   
265  
266Allow 192.168.&lt;br</limit></directory></anonymous></anonymous>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus