LinuxSir.cn,穿越时空的Linuxsir!

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

[求救]FB下配置好vsftpd后凡是图像文件都无法正常上传是什么问题呢?

[复制链接]
发表于 2004-1-14 13:49:32 | 显示全部楼层 |阅读模式
我在FreeBSD4.9下安装好了vsftpd,ports安装的,配置好后在win下无论用什么ftp软件都无法正常上传图像文件,情况是上传到最后100%后还一直在传,直到0k还没完, 其他文件一切正常,求救!:help
 楼主| 发表于 2004-1-14 15:50:55 | 显示全部楼层
hmmm,nobody?
发表于 2004-1-14 16:13:35 | 显示全部楼层
怎么配置的vsftpd.conf, 我的系统是5.1, vsftpd, 上传下载都很好, 没问题!
 楼主| 发表于 2004-1-15 10:15:41 | 显示全部楼层
你好rainren,我的配置文件是这样的:

  1. # Example config file /etc/vsftpd.conf
  2. #
  3. # The default compiled in settings are fairly paranoid. This sample file
  4. # loosens things up a bit, to make the ftp daemon more usable.
  5. # Please see vsftpd.conf.5 for all compiled in defaults.
  6. #
  7. # READ THIS: This example file is NOT an exhaustive list of vsftpd options.
  8. # Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
  9. # capabilities.
  10. #
  11. # Allow anonymous FTP? (Beware - allowed by default if you comment this out).
  12. anonymous_enable=YES
  13. #
  14. # Uncomment this to allow local users to log in.
  15. local_enable=YES
  16. #
  17. # Uncomment this to enable any form of FTP write command.
  18. write_enable=YES
  19. #
  20. # Default umask for local users is 077. You may wish to change this to 022,
  21. # if your users expect that (022 is used by most other ftpd's)
  22. local_umask=077
  23. #
  24. # Uncomment this to allow the anonymous FTP user to upload files. This only
  25. # has an effect if the above global write enable is activated. Also, you will
  26. # obviously need to create a directory writable by the FTP user.
  27. anon_upload_enable=YES
  28. #
  29. # Uncomment this if you want the anonymous FTP user to be able to create
  30. # new directories.
  31. anon_mkdir_write_enable=YES
  32. #
  33. # Activate directory messages - messages given to remote users when they
  34. # go into a certain directory.
  35. dirmessage_enable=YES
  36. #
  37. # Activate logging of uploads/downloads.
  38. xferlog_enable=YES
  39. #
  40. # Make sure PORT transfer connections originate from port 20 (ftp-data).
  41. connect_from_port_20=YES
  42. #
  43. # If you want, you can arrange for uploaded anonymous files to be owned by
  44. # a different user. Note! Using "root" for uploaded files is not
  45. # recommended!
  46. #chown_uploads=YES
  47. #chown_username=whoever
  48. #
  49. # You may override where the log file goes if you like. The default is shown
  50. # below.
  51. #xferlog_file=/var/log/vsftpd.log
  52. #
  53. # If you want, you can have your log file in standard ftpd xferlog format
  54. #xferlog_std_format=YES
  55. #
  56. # You may change the default value for timing out an idle session.
  57. idle_session_timeout=600
  58. #
  59. # You may change the default value for timing out a data connection.
  60. #data_connection_timeout=120
  61. #
  62. # It is recommended that you define on your system a unique user which the
  63. # ftp server can use as a totally isolated and unprivileged user.
  64. #nopriv_user=ftpsecure
  65. #
  66. # Enable this and the server will recognise asynchronous ABOR requests. Not
  67. # recommended for security (the code is non-trivial). Not enabling it,
  68. # however, may confuse older FTP clients.
  69. #async_abor_enable=YES
  70. #
  71. # By default the server will pretend to allow ASCII mode but in fact ignore
  72. # the request. Turn on the below options to have the server actually do ASCII
  73. # mangling on files when in ASCII mode.
  74. # Beware that turning on ascii_download_enable enables malicious remote parties
  75. # to consume your I/O resources, by issuing the command "SIZE /big/file" in
  76. # ASCII mode.
  77. # These ASCII options are split into upload and download because you may wish
  78. # to enable ASCII uploads (to prevent uploaded scripts etc. from breaking),
  79. # without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be
  80. # on the client anyway..
  81. ascii_upload_enable=YES
  82. ascii_download_enable=YES
  83. #
  84. # You may fully customise the login banner string:
  85. ftpd_banner=欢迎进入思腾临时 FreeBSD 测试服务器。
  86. #
  87. # You may specify a file of disallowed anonymous e-mail addresses. Apparently
  88. # useful for combatting certain DoS attacks.
  89. #deny_email_enable=YES
  90. # (default follows)
  91. #banned_email_file=/etc/vsftpd.banned_emails
  92. #
  93. # You may specify an explicit list of local users to chroot() to their home
  94. # directory. If chroot_local_user is YES, then this list becomes a list of
  95. # users to NOT chroot().
  96. #chroot_list_enable=YES
  97. # (default follows)
  98. #chroot_list_file=/etc/vsftpd.chroot_list
  99. #
  100. # You may activate the "-R" option to the builtin ls. This is disabled by
  101. # default to avoid remote users being able to cause excessive I/O on large
  102. # sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
  103. # the presence of the "-R" option, so there is a strong case for enabling it.
  104. #ls_recurse_enable=YES
  105. #pam_service_name=vsftpd
  106. #userlist_enable=YES
  107. #enable for standalone mode
  108. #listen=YES
  109. #tcp_wrappers=YES
  110. #把系统内所有的FTP用户都限制在家目录中
  111. chroot_local_user=YES
  112. secure_chroot_dir=/usr/local/share/vsftpd/empty
复制代码
发表于 2004-1-15 15:39:27 | 显示全部楼层

  1. # Example config file /etc/vsftpd.conf
  2. #
  3. # The default compiled in settings are fairly paranoid. This sample file
  4. # loosens things up a bit, to make the ftp daemon more usable.
  5. # Please see vsftpd.conf.5 for all compiled in defaults.
  6. #
  7. # READ THIS: This example file is NOT an exhaustive list of vsftpd options.
  8. # Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
  9. # capabilities.
  10. #
  11. # Allow anonymous FTP? (Beware - allowed by default if you comment this out).
  12. anonymous_enable=YES
  13. #
  14. # Uncomment this to allow local users to log in.
  15. local_enable=YES
  16. #
  17. # Uncomment this to enable any form of FTP write command.
  18. write_enable=YES
  19. #
  20. # Default umask for local users is 077. You may wish to change this to 022,
  21. # if your users expect that (022 is used by most other ftpd's)
  22. local_umask=022
  23. #
  24. # Uncomment this to allow the anonymous FTP user to upload files. This only
  25. # has an effect if the above global write enable is activated. Also, you will
  26. # obviously need to create a directory writable by the FTP user.
  27. #anon_upload_enable=YES
  28. #
  29. # Uncomment this if you want the anonymous FTP user to be able to create
  30. # new directories.
  31. #anon_mkdir_write_enable=YES
  32. #
  33. # Activate directory messages - messages given to remote users when they
  34. # go into a certain directory.
  35. dirmessage_enable=YES
  36. #
  37. # Activate logging of uploads/downloads.
  38. xferlog_enable=YES
  39. #
  40. # Make sure PORT transfer connections originate from port 20 (ftp-data).
  41. connect_from_port_20=YES
  42. #
  43. # If you want, you can arrange for uploaded anonymous files to be owned by
  44. # a different user. Note! Using "root" for uploaded files is not
  45. # recommended!
  46. #chown_uploads=YES
  47. #chown_username=whoever
  48. #
  49. # You may override where the log file goes if you like. The default is shown
  50. # below.
  51. xferlog_file=/var/log/vsftpd.log
  52. #
  53. # If you want, you can have your log file in standard ftpd xferlog format
  54. xferlog_std_format=YES
  55. #
  56. # You may change the default value for timing out an idle session.
  57. #idle_session_timeout=600
  58. #
  59. # You may change the default value for timing out a data connection.
  60. #data_connection_timeout=120
  61. #
  62. # It is recommended that you define on your system a unique user which the
  63. # ftp server can use as a totally isolated and unprivileged user.
  64. #nopriv_user=ftpsecure
  65. #
  66. # Enable this and the server will recognise asynchronous ABOR requests. Not
  67. # recommended for security (the code is non-trivial). Not enabling it,
  68. # however, may confuse older FTP clients.
  69. #async_abor_enable=YES
  70. #
  71. # By default the server will pretend to allow ASCII mode but in fact ignore
  72. # the request. Turn on the below options to have the server actually do ASCII
  73. # mangling on files when in ASCII mode.
  74. # Beware that turning on ascii_download_enable enables malicious remote parties
  75. # to consume your I/O resources, by issuing the command "SIZE /big/file" in
  76. # ASCII mode.
  77. # These ASCII options are split into upload and download because you may wish
  78. # to enable ASCII uploads (to prevent uploaded scripts etc. from breaking),
  79. # without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be
  80. # on the client anyway..
  81. #ascii_upload_enable=YES
  82. #ascii_download_enable=YES
  83. #
  84. # You may fully customise the login banner string:
  85. #ftpd_banner=Welcome to blah FTP service.
  86. #
  87. # You may specify a file of disallowed anonymous e-mail addresses. Apparently
  88. # useful for combatting certain DoS attacks.
  89. #deny_email_enable=YES
  90. # (default follows)
  91. #banned_email_file=/etc/vsftpd.banned_emails
  92. #
  93. # You may specify an explicit list of local users to chroot() to their home
  94. # directory. If chroot_local_user is YES, then this list becomes a list of
  95. # users to NOT chroot().
  96. chroot_list_enable=YES
  97. # (default follows)
  98. chroot_list_file=/usr/local/etc/vsftpd.chroot_list
  99. #
  100. # You may activate the "-R" option to the builtin ls. This is disabled by
  101. # default to avoid remote users being able to cause excessive I/O on large
  102. # sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
  103. # the presence of the "-R" option, so there is a strong case for enabling it.
  104. #ls_recurse_enable=YES

  105. secure_chroot_dir=/usr/local/share/vsftpd
  106. #secure_chroot_dir=/home/ftp

  107. max_clients=50
  108. max_per_ip=8


复制代码
 楼主| 发表于 2004-1-15 18:48:19 | 显示全部楼层
Thx!
 楼主| 发表于 2004-1-16 16:28:16 | 显示全部楼层
rainren兄,还是不行
发表于 2004-1-16 21:29:02 | 显示全部楼层
你能否说说你是用什么用户登陆FTP, 用户的权限设置如何? 还有你的FTP放在什么位置, 及网络情况!

我的FTP服务器工作很正常,就是上面的配置! 可否查看一下你的FTP用户的目录权限看看有没什么问题~!
发表于 2004-1-16 21:37:09 | 显示全部楼层
你上传别的文件有没问题? 你的图像文件能否说的具体点!
 楼主| 发表于 2004-1-17 16:01:29 | 显示全部楼层
感谢……
现在不弄了,过年太慢,过几天搞台双志强/1GDDR再弄,这台P3/500 128MRM太慢了……
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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