风流涕淌 发表于 2005-06-16 01:22

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

只能说感谢了

初学vb 发表于 2005-06-17 13:31

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

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

jiyu2004 发表于 2005-06-17 19:41

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

好东西,收藏了

万里北国 发表于 2005-06-18 01:33

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

厉害!

成长中 发表于 2005-06-19 11:06

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

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

编译过程

gcc -c main.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c utility.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c prelogin.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c ftpcmdio.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c postlogin.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c privsock.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c tunables.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c ftpdataio.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c secbuf.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c ls.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c postprivparent.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c logging.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c str.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c netstr.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c sysstr.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c strlist.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c banner.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c filestr.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c parseconf.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c secutil.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c ascii.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c oneprocess.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c twoprocess.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c privops.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c standalone.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c hash.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c tcpwrap.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c ipaddrparse.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c access.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c features.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c readwrite.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c ssl.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c sysutil.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c sysdeputil.c -O2 -Wall -W -Wshadow-idirafter dummyinc
sysdeputil.c:1112: warning: `vsf_insert_uwtmp' defined but not used
sysdeputil.c:1151: warning: `vsf_remove_uwtmp' defined but not used
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`


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

sysdeputil.c:1112: warning: `vsf_insert_uwtmp' defined but not used
sysdeputil.c:1151: warning: `vsf_remove_uwtmp' defined but not used


配置文件
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=NO
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
#local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
anon_upload_enable=NO
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
anon_mkdir_write_enable=NO
anon_other_write_enable=NO
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
#xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that turning on ascii_download_enable enables malicious remote parties
# to consume your I/O resources, by issuing the command "SIZE /big/file" in
# ASCII mode.
# These ASCII options are split into upload and download because you may wish
# to enable ASCII uploads (to prevent uploaded scripts etc. from breaking),
# without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be
# on the client anyway..
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
listen=YES
listen_port=21
tcp_wrappers=YES
chroot_local_user=YES
guest_enable=YES
guest_username=vsftpd
virtual_use_local_privs=YES
pasv_enable=YES
pasv_min_port=30000
pasv_max_port=30999

初学vb 发表于 2005-06-20 00:40

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

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

nbslr 发表于 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
按照上面的

zhjie 发表于 2005-06-22 08:36

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

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


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


谢谢指教!

wolfg 发表于 2005-06-22 09:41

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

你的pam文件的内容?

nbslr 发表于 2005-06-22 13:03

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

我的pam跟楼主的一样
页: 1 2 [3] 4 5 6 7 8 9 10 11 12
查看完整版本: vsftp配置大全---超完整版,首发CU之FTP区