1 / 106
文档名称:

Linux课件:第四章 Linux网络服务管理.pdf

格式:pdf   页数:106
下载后只包含 1 个 PDF 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

Linux课件:第四章 Linux网络服务管理.pdf

上传人:小猪猪 2011/11/30 文件大小:0 KB

下载得到文件列表

Linux课件:第四章 Linux网络服务管理.pdf

文档介绍

文档介绍:第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