由 hellozwz 在 01-14-2004 21:24 发表:
请熟悉proftpd的朋友指点一下。
想建一个Redhat9+proftpd1.2.9的FTP服务器。不想开匿名用户,只想让系统用户登陆。现在服务器已经可以工作了但是系统用户登陆以后无法上传文件及建立目录就象没有写的权限似的。。
配置文件如下:
>
> 源码:
>
> * * *
>
>
> >
> [root@cnc-zg-nat etc]# more proftpd.conf
> >
> # This is a basic ProFTPD configuration file (rename it to
> >
> # 'proftpd.conf' for actual use. It establishes a single server
> >
> # and a single anonymous login. It assumes that you have a user/group
> >
> # "nobody" and "ftp" for normal operation and anon.
> >
>
> >
> ServerName "Wellcome to hellozwz's FTP" #服务器的名称
> >
> ServerType standalone #服务器的服务方式(系统服务/inetd连接)ServerType
> >
> standalone/inetd
> >
> DefaultServer on #默认服务
> >
>
> >
> # Port 21 is the standard FTP port.
> >
> Port 21 #默认使用的端口
> >
>
> >
> # Umask 022 is a good standard umask to prevent new dirs and files
> >
> # from being group and world writable.
> >
> Umask 022
> >
>
> >
> # To prevent DoS attacks, set the maximum number of child processes
> >
> # to 30. If you need to allow more than 30 concurrent connections
> >
> # at once, simply increase this value. Note that this ONLY works
> >
> # in standalone mode, in inetd mode you should use an inetd server
> >
> # that allows you to limit maximum number of processes per service
> >
> # (such as xinetd).
> >
> MaxInstances 30
> >
>
> >
> # Set the user and group under which the server will run. #proftpd在做为服务时的用户名和组名
> >
> User nobody
> >
> Group nobody
> >
>
> >
> # To cause every FTP user to be "jailed" (chrooted) into their home
> >
> # directory, uncomment this line.
> >
> DefaultRoot ~ #根目录设定,可以用/home也可用~,可以使用户不能向上到
> >
> 根目录下
> >
>
> >
> # Normally, we want files to be overwriteable. #目录的权力
> >
>
1<directory></directory>
> >
> AllowOverwrite on
> >
>
> >
>
> >
> # A basic anonymous configuration, no upload directories. If you do not
> >
> # want anonymous users, simply delete this entire
1<anonymous> section.
2> >
3> [7m--More--(77%)[m
4> >
5> #<anonymous ~ftp="">
6> >
7> # User ftp
8> >
9>
10> >
11> # Group ftp
12> >
13>
14> >
15> # We want clients to be able to login with "anonymous" as well as "ftp"
16> >
17> # UserAlias anonymous ftp
18> >
19>
20> >
21> # Limit the maximum number of anonymous logins
22> >
23> MaxClients 10
24> >
25>
26> >
27> # We want 'welcome.msg' displayed at login, and '.message' displayed
28> >
29> # in each newly chdired directory.
30> >
31> DisplayLogin welcome.msg
32> >
33> DisplayFirstChdir .message
34> >
35>
36> >
37> # Limit WRITE everywhere in the anonymous chroot
38> >
39> <limit write="">
40> >
41> DenyAll
42> >
43> </limit>
44> >
45> #</anonymous>
46> >
47>
48> >
49>
50>
51> * * *
52
53
54
55
56
57麻烦帮看一下那儿修改的有问题。。 就是想实现比如系统里有个叫aaa的用户它
58
59的主目录是/home</anonymous>