免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: 初学vb

[FTP] vsftp配置大全---超完整版,首发CU之FTP区 [复制链接]

论坛徽章:
0
发表于 2005-06-16 01:22 |显示全部楼层

vsftp配置大全---超完整版,首发CU之FTP区

只能说感谢了

论坛徽章:
0
发表于 2005-06-17 13:31 |显示全部楼层

vsftp配置大全---超完整版,首发CU之FTP区

两个参数的问题已解决,官方下载的那个TAR包有BUG没有修复,如非要用此两个参数,那么请下载RH-FC项目释放的vsftp-2.0.3-2.i386.rpm,用GOOGLE可以搜索出来。

论坛徽章:
0
发表于 2005-06-17 19:41 |显示全部楼层

vsftp配置大全---超完整版,首发CU之FTP区

好东西,收藏了

论坛徽章:
0
发表于 2005-06-18 01:33 |显示全部楼层

vsftp配置大全---超完整版,首发CU之FTP区

厉害!

论坛徽章:
0
发表于 2005-06-19 11:06 |显示全部楼层

vsftp配置大全---超完整版,首发CU之FTP区

按照搂主的方法配置,在centos-3上面, 虚拟用户,怎么配置都是提示 密码错误! 实在是想不到问题会出在哪里。

编译过程

  1. gcc -c main.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  2. gcc -c utility.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  3. gcc -c prelogin.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  4. gcc -c ftpcmdio.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  5. gcc -c postlogin.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  6. gcc -c privsock.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  7. gcc -c tunables.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  8. gcc -c ftpdataio.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  9. gcc -c secbuf.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  10. gcc -c ls.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  11. gcc -c postprivparent.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  12. gcc -c logging.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  13. gcc -c str.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  14. gcc -c netstr.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  15. gcc -c sysstr.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  16. gcc -c strlist.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  17. gcc -c banner.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  18. gcc -c filestr.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  19. gcc -c parseconf.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  20. gcc -c secutil.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  21. gcc -c ascii.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  22. gcc -c oneprocess.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  23. gcc -c twoprocess.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  24. gcc -c privops.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  25. gcc -c standalone.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  26. gcc -c hash.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  27. gcc -c tcpwrap.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  28. gcc -c ipaddrparse.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  29. gcc -c access.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  30. gcc -c features.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  31. gcc -c readwrite.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  32. gcc -c ssl.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  33. gcc -c sysutil.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  34. gcc -c sysdeputil.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
  35. sysdeputil.c:1112: warning: `vsf_insert_uwtmp' defined but not used
  36. sysdeputil.c:1151: warning: `vsf_remove_uwtmp' defined but not used
  37. gcc -o vsftpd main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o tunables.o ftpdataio.o secbuf.o ls.o postprivparent.o logging.o str.o netstr.o sysstr.o strlist.o banner.o filestr.o parseconf.o secutil.o ascii.o oneprocess.o twoprocess.o privops.o standalone.o hash.o tcpwrap.o ipaddrparse.o access.o features.o readwrite.o ssl.o sysutil.o sysdeputil.o -Wl,-s `./vsf_findlibs.sh`
复制代码


是不是和这个两个问题有关系呢?

  1. sysdeputil.c:1112: warning: `vsf_insert_uwtmp' defined but not used
  2. sysdeputil.c:1151: warning: `vsf_remove_uwtmp' defined but not used
复制代码
[/code]


配置文件
  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=NO
  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=NO
  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=NO
  28. #
  29. # Uncomment this if you want the anonymous FTP user to be able to create
  30. # new directories.
  31. anon_mkdir_write_enable=NO
  32. anon_other_write_enable=NO
  33. #
  34. # Activate directory messages - messages given to remote users when they
  35. # go into a certain directory.
  36. dirmessage_enable=YES
  37. #
  38. # Activate logging of uploads/downloads.
  39. xferlog_enable=YES
  40. #
  41. # Make sure PORT transfer connections originate from port 20 (ftp-data).
  42. connect_from_port_20=YES
  43. #
  44. # If you want, you can arrange for uploaded anonymous files to be owned by
  45. # a different user. Note! Using "root" for uploaded files is not
  46. # recommended!
  47. #chown_uploads=YES
  48. #chown_username=whoever
  49. #
  50. # You may override where the log file goes if you like. The default is shown
  51. # below.
  52. #xferlog_file=/var/log/vsftpd.log
  53. #
  54. # If you want, you can have your log file in standard ftpd xferlog format
  55. #xferlog_std_format=YES
  56. #
  57. # You may change the default value for timing out an idle session.
  58. #idle_session_timeout=600
  59. #
  60. # You may change the default value for timing out a data connection.
  61. #data_connection_timeout=120
  62. #
  63. # It is recommended that you define on your system a unique user which the
  64. # ftp server can use as a totally isolated and unprivileged user.
  65. #nopriv_user=ftpsecure
  66. #
  67. # Enable this and the server will recognise asynchronous ABOR requests. Not
  68. # recommended for security (the code is non-trivial). Not enabling it,
  69. # however, may confuse older FTP clients.
  70. #async_abor_enable=YES
  71. #
  72. # By default the server will pretend to allow ASCII mode but in fact ignore
  73. # the request. Turn on the below options to have the server actually do ASCII
  74. # mangling on files when in ASCII mode.
  75. # Beware that turning on ascii_download_enable enables malicious remote parties
  76. # to consume your I/O resources, by issuing the command "SIZE /big/file" in
  77. # ASCII mode.
  78. # These ASCII options are split into upload and download because you may wish
  79. # to enable ASCII uploads (to prevent uploaded scripts etc. from breaking),
  80. # without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be
  81. # on the client anyway..
  82. #ascii_upload_enable=YES
  83. #ascii_download_enable=YES
  84. #
  85. # You may fully customise the login banner string:
  86. #ftpd_banner=Welcome to blah FTP service.
  87. #
  88. # You may specify a file of disallowed anonymous e-mail addresses. Apparently
  89. # useful for combatting certain DoS attacks.
  90. #deny_email_enable=YES
  91. # (default follows)
  92. #banned_email_file=/etc/vsftpd.banned_emails
  93. #
  94. # You may specify an explicit list of local users to chroot() to their home
  95. # directory. If chroot_local_user is YES, then this list becomes a list of
  96. # users to NOT chroot().
  97. #chroot_list_enable=YES
  98. # (default follows)
  99. #chroot_list_file=/etc/vsftpd.chroot_list
  100. #
  101. # You may activate the "-R" option to the builtin ls. This is disabled by
  102. # default to avoid remote users being able to cause excessive I/O on large
  103. # sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
  104. # the presence of the "-R" option, so there is a strong case for enabling it.
  105. #ls_recurse_enable=YES
  106. listen=YES
  107. listen_port=21
  108. tcp_wrappers=YES
  109. chroot_local_user=YES
  110. guest_enable=YES
  111. guest_username=vsftpd
  112. virtual_use_local_privs=YES
  113. pasv_enable=YES
  114. pasv_min_port=30000
  115. pasv_max_port=30999
复制代码

论坛徽章:
0
发表于 2005-06-20 00:40 |显示全部楼层

vsftp配置大全---超完整版,首发CU之FTP区

如果按我写的配置是不会出现密码错误的,你的/etc/pam.d/ftp里是怎样设置的?

论坛徽章:
0
发表于 2005-06-22 07:10 |显示全部楼层

vsftp配置大全---超完整版,首发CU之FTP区

我在用数据的时候实现了虚拟用户的ftp,后来在用mysql数据库的时候发生了无法登入,不知道什么原因。我想是不是下面这句话:
“user_config_dir=/etc/vsftpd_user_conf ”
我的配置是这样的
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
chroot_local_user=YES
guest_enable=YES
guest_username=ftpd
listen=YES
listen_port=21
pasv_enable=YES
pasv_min_port=30000
pasv_max_port=30999
anon_world_readable_only=NO
virtual_use_local_privs=YES

#user_config_dir=/etc/vsftpd_user_conf
按照上面的

论坛徽章:
0
发表于 2005-06-22 08:36 |显示全部楼层

vsftp配置大全---超完整版,首发CU之FTP区

有没有同仁使用上述环境配置成功?


有的资料说这种方法只能用于MYSQL 3.XX,  是否真的如此?


谢谢指教!

论坛徽章:
0
发表于 2005-06-22 09:41 |显示全部楼层

vsftp配置大全---超完整版,首发CU之FTP区

你的pam文件的内容?

论坛徽章:
0
发表于 2005-06-22 13:03 |显示全部楼层

vsftp配置大全---超完整版,首发CU之FTP区

我的pam跟楼主的一样
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

SACC2019中国系统架构师大会

【数字转型 架构演进】SACC2019中国系统架构师大会,8.5折限时优惠重磅来袭!
2019年10月31日~11月2日第11届中国系统架构师大会(SACC2019)将在北京隆重召开。四大主线并行的演讲模式,1个主会场、20个技术专场、超千人参与的会议规模,100+来自互联网、金融、制造业、电商等领域的嘉宾阵容,将为广大参会者提供一场最具价值的技术交流盛会。

限时8.5折扣期:2019年9月30日前


----------------------------------------

大会官网>>
  

北京盛拓优讯信息技术有限公司. 版权所有 16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122
中国互联网协会会员  联系我们:huangweiwei@it168.com
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP