文档介绍:第4章 linux网络服务管理
—ftp、samba、apache
******@2008-
HE629@ 1
FTP服务器简介
FTP(File Transfer Protocol)是用于管
上计算机之间的文件传送。
FTP需要两个网络连接:
数据连接使用TCP 21 端口
控制连接使用TCP 20 端口
******@2008-
HE629@ 2
FTP服务器端软件
vsftpd VSFTPD 是“very secure FTP daemon”的缩
写,安全性是它的一个最大的特点。
pure-ftpd
proftpd
CrossFTP
******@2008-
HE629@ 3
vsftpd服务的启动和关闭
服务器启动脚本
启动脚本名称是vsftpd
/etc/
服务器启动
# service vsftpd start
服务器停止
# service vsftpd stop
服务器状态查询
# service vsftpd status
******@2008-
HE629@ 4
vsftpd配置文件
vsftpd配置文件有3个,分别是:
①/etc/vsftpd/
主配置文件。
②/etc/
指定了哪些用户不能访问FTP服务器。
③/etc/
指定的用户在/etc/vsftpd/
userlist_enable =YES 且userlist_deny=YES时不能访问
FTP服务器。
******@2008-
HE629@ 5
(2) 。
# Users that are not allowed to login via ftp
root
bin
daemon
adm
lp
sync
shutdown
Halt
mail
news
uucp
operator
games
nobody ******@2008-
HE629@ 6
local_enable=YES
userlist_deny=NO
(3) 。
# 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/
# for users that are denied.
Root mail
bin news
daemon
adm uucp
lp operator
sync games
shutdown
nobody
halt ******@2008-
HE629@ 7
(1)
# Example config file /etc/
#
# The piled in settings are very paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
#
# Allow anonymous FTP?
anonymous_enable=YES //接受匿名用户
#
# ment this to allow local users to log in.
local_enable=YES //接受本地用户
查看vsftpd中支持的用户类型
******@2008-
HE629@ 8
(2)
# ment this