由 liuchui 在 11-18-2002 18:06 发表:
怎么才能把系统中的用户限制在/var/ftp里面
用proftpd简单的配置了个ftp,并在rh8.0里新建了一个soft用户,属于ftp组,没有shell,主目录为/var/ftp
proftpd的配置是这样的:
1<anonymous ftp="" var="">
2
3User soft
4
5Group ftp
6
7UserAlias linus soft
8
9AnonRequirePassword on
10
11AuthAliasOnly on
12
13RequireValidShell off
14
15MaxClients 10
16
17MaxClientsPerHost 3
18
19<limit write="">
20
21DenyAll
22
23IgnoreHidden on
24
25</limit>
26<directory *="" incoming="">
27<limit stor="">
28
29AllowAll
30
31</limit>
32<limit dele="" mkd="" rmd="">
33
34DenyAll
35
36</limit>
37</directory>
38</anonymous>
按照这个配制soft可以下载/var/ftp里面的文件,也可以在incoming里面上传文件,但是后来发现soft向上竟还可以下载整个linux分区的