请熟悉proftpd的朋友指点一下。

由 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&gt;     &gt; 
 3&gt;     --More--(77%)  
 4&gt;     &gt; 
 5&gt;     #<anonymous ~ftp="">  
 6&gt;     &gt; 
 7&gt;     #  User				ftp  
 8&gt;     &gt; 
 9&gt;       
10&gt;     &gt; 
11&gt;     #  Group				ftp  
12&gt;     &gt; 
13&gt;       
14&gt;     &gt; 
15&gt;       # We want clients to be able to login with "anonymous" as well as "ftp"  
16&gt;     &gt; 
17&gt;      # UserAlias			anonymous ftp  
18&gt;     &gt; 
19&gt;       
20&gt;     &gt; 
21&gt;       # Limit the maximum number of anonymous logins  
22&gt;     &gt; 
23&gt;       MaxClients			10  
24&gt;     &gt; 
25&gt;       
26&gt;     &gt; 
27&gt;       # We want 'welcome.msg' displayed at login, and '.message' displayed  
28&gt;     &gt; 
29&gt;       # in each newly chdired directory.  
30&gt;     &gt; 
31&gt;       DisplayLogin			welcome.msg  
32&gt;     &gt; 
33&gt;       DisplayFirstChdir		.message  
34&gt;     &gt; 
35&gt;       
36&gt;     &gt; 
37&gt;       # Limit WRITE everywhere in the anonymous chroot  
38&gt;     &gt; 
39&gt;       <limit write="">  
40&gt;     &gt; 
41&gt;         DenyAll  
42&gt;     &gt; 
43&gt;       </limit>  
44&gt;     &gt; 
45&gt;     #</anonymous>  
46&gt;     &gt; 
47&gt;       
48&gt;     &gt; 
49&gt;     
50&gt;     
51&gt;     * * *
52
53  
54  
55  
56  
57麻烦帮看一下那儿修改的有问题。。 就是想实现比如系统里有个叫aaa的用户它   
58  
59的主目录是/home</anonymous>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus