LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 600|回复: 2

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

[复制链接]
发表于 2004-1-14 21:24:45 | 显示全部楼层 |阅读模式
想建一个Redhat9+proftpd1.2.9的FTP服务器。不想开匿名用户,只想让系统用户登陆。现在服务器已经可以工作了但是系统用户登陆以后无法上传文件及建立目录就象没有写的权限似的。。

配置文件如下:

  1. [root@cnc-zg-nat etc]# more proftpd.conf
  2. # This is a basic ProFTPD configuration file (rename it to
  3. # 'proftpd.conf' for actual use.  It establishes a single server
  4. # and a single anonymous login.  It assumes that you have a user/group
  5. # "nobody" and "ftp" for normal operation and anon.

  6. ServerName                        "Wellcome to hellozwz's FTP"  #服务器的名称
  7. ServerType                        standalone                    #服务器的服务方式(系统服务/inetd连接)ServerType
  8. standalone/inetd
  9. DefaultServer                        on                            #默认服务

  10. # Port 21 is the standard FTP port.
  11. Port                                21                            #默认使用的端口

  12. # Umask 022 is a good standard umask to prevent new dirs and files
  13. # from being group and world writable.
  14. Umask                                022

  15. # To prevent DoS attacks, set the maximum number of child processes
  16. # to 30.  If you need to allow more than 30 concurrent connections
  17. # at once, simply increase this value.  Note that this ONLY works
  18. # in standalone mode, in inetd mode you should use an inetd server
  19. # that allows you to limit maximum number of processes per service
  20. # (such as xinetd).
  21. MaxInstances                        30

  22. # Set the user and group under which the server will run.     #proftpd在做为服务时的用户名和组名
  23. User                                nobody
  24. Group                                nobody

  25. # To cause every FTP user to be "jailed" (chrooted) into their home
  26. # directory, uncomment this line.
  27. DefaultRoot ~                                               #根目录设定,可以用/home也可用~,可以使用户不能向上到
  28. 根目录下

  29. # Normally, we want files to be overwriteable.               #目录的权力
  30. <Directory />
  31.   AllowOverwrite                on
  32. </Directory>

  33. # A basic anonymous configuration, no upload directories.  If you do not
  34. # want anonymous users, simply delete this entire <Anonymous> section.
  35. --More--(77%)
  36. #<Anonymous ~ftp>
  37. #  User                                ftp

  38. #  Group                                ftp

  39.   # We want clients to be able to login with "anonymous" as well as "ftp"
  40. # UserAlias                        anonymous ftp

  41.   # Limit the maximum number of anonymous logins
  42.   MaxClients                        10

  43.   # We want 'welcome.msg' displayed at login, and '.message' displayed
  44.   # in each newly chdired directory.
  45.   DisplayLogin                        welcome.msg
  46.   DisplayFirstChdir                .message

  47.   # Limit WRITE everywhere in the anonymous chroot
  48.   <Limit WRITE>
  49.     DenyAll
  50.   </Limit>
  51. #</Anonymous>

复制代码


麻烦帮看一下那儿修改的有问题。。 就是想实现比如系统里有个叫aaa的用户它
的主目录是/home/aaa 让aaa在访问FTP的时候被锁定在/home/aaa下aaa可以在/home/aaa下随便上传下载。。。

多谢了。。
发表于 2004-1-15 01:11:16 | 显示全部楼层
你的用户对这个目录有没有写权利 DefaultRoot aaa /home/aaa
发表于 2004-1-15 01:25:12 | 显示全部楼层
<Limit WRITE>
    DenyAll
  </Limit>

允许的用allow加上去,或是AllowAll
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表