建PureFTPd服务器

附加题:

u 案例需求

1. 下载另一款知名的FTP服务器软件――Pure FTPd的安装包文件。

2. 安装并配置Pure FTPd服务,将/var/ftp作为根目录,子目录pub/支持匿名上传。

u 知识提示

Pure-FTPd是一个免费、安全、注重产品质量和构造标准化的FTP服务器软件,在安全、效率和易用性方面表现都非常出色。Pure-FTPd的官方网站位于http://www.pureftpd.org ,目前最新的版本为1.0.35。

1. 安装Pure-FTPd服务器软件

[root@localhost pub]# tar zxf pure-ftpd-1.0.35.tar.gz

[root@localhost pub]# cd pure-ftpd-1.0.35

[root@localhost pure-ftpd-1.0.35]# ./configure

[root@localhost pure-ftpd-1.0.35]# make install-strip

2. 准备匿名FTP用户(ftp)及文档目录

[root@localhost ~]# mkdir -p /var/ftp/pub

[root@localhost ~]# useradd -u 14 -d /var/ftp -s /sbin/nologin ftp

[root@localhost ~]# chown ftp /var/ftp/pub/

3. 启动Pure-FTPd服务器程序(具体用法可查看man pure-ftpd)

[root@localhost ~]# pure-ftpd --dontresolve --anonymouscancreatedirs &

[1] 11469

[root@localhost ~]# netstat -anpt | grep ftp

tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 11469/pure-ftpd (SE

tcp 0 0 :::21 :::* LISTEN 11469/pure-ftpd (SE

4. 匿名访问Pure-FTPd服务器,执行下载、上传测试

[root@localhost ~]# ftp 192.168.4.11

Connected to 192.168.4.11.

220---------- Welcome to Pure-FTPd [privsep] ----------

220-You are user number 1 of 50 allowed.

220-Local time is now 17:31. Server port: 21.

220-IPv6 connections are also welcome on this server.

220 You will be disconnected after 15 minutes of inactivity.

500 This security scheme is not implemented

500 This security scheme is not implemented

KERBEROS_V4 rejected as an authentication type

Name (192.168.4.11:root): ftp

230 Anonymous user logged in

Remote system type is UNIX.

Using binary mode to transfer files.

ftp> cd pub

250 OK. Current directory is /pub

ftp> mput install.log

mput install.log? y

227 Entering Passive Mode (192,168,4,11,158,48)

150 Accepted data connection

226-File successfully transferred

226 0.027 seconds (measured here), 1.30 Mbytes per second

37039 bytes sent in 0.026 seconds (1.4e+03 Kbytes/s)

你可能感兴趣的:(服务器,target,官方网站,blank,根目录)