管理linux服务器时,经常会用到上传、下载文件的功能,下面是关于如何配置vsftpd实现上传、下载功能。
1、查找rpm安装包,RPM安装包名:vsftpd-2.0.5-16.el5.i386.rpm
# find -name vsftp*
2、安装rpm包
# rpm -ivh vsftpd-2.0.5-16.el5.i386.rpm
3、修改ftpusers配置文件
# cd /etc/vsftpd/
# vi ftpusers
# Users that are not allowed to login via ftp
#root "加上#"
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
4、修改user_list配置文件
# vi user_list
# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.
#root "加上#"
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
~
5、修改vsftpd.conf配置文件
# vi vsftpd.conf
添加listen_port=21
6、启动vsftpd服务
# service vsftpd start
1、查找rpm安装包,RPM安装包名:vsftpd-2.0.5-16.el5.i386.rpm
# find -name vsftp*
2、安装rpm包
# rpm -ivh vsftpd-2.0.5-16.el5.i386.rpm
3、修改ftpusers配置文件
# cd /etc/vsftpd/
# vi ftpusers
# Users that are not allowed to login via ftp
#root "加上#"
bin
daemon
adm
lp
sync
shutdown
halt
news
uucp
operator
games
nobody
4、修改user_list配置文件
# vi user_list
# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.
#root "加上#"
bin
daemon
adm
lp
sync
shutdown
halt
news
uucp
operator
games
nobody
~
5、修改vsftpd.conf配置文件
# vi vsftpd.conf
添加listen_port=21
6、启动vsftpd服务
# service vsftpd start