快速业务通道

Linux网络管理之六:vsftpd-2.0.5源代码安装和PAM使用

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-05-13
[root@AS4 ~]# rpm -qa | grep vsftpd vsftpd-2.0.1-5.EL4.3 [root@AS4 ~]# rpm -e vsftpd-2.0.1-5.EL4.3 ---先删除原来的版本 ---------------------------------------------------------<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> [root@AS4 src]# pwd /usr/src [root@AS4 src]# ls kernels redhat vsftpd-2.0.5.tar.gz --------下载的源代码文件=============================================================== 一、解压: [root@AS4 src]# tar xvzf vsftpd-2.0.5.tar.gz ---解压下载的源文件 vsftpd-2.0.5/ vsftpd-2.0.5/oneprocess.h vsftpd-2.0.5/ipaddrparse.h …… vsftpd-2.0.5/BENCHMARKS vsftpd-2.0.5/features.h ================================================================== 二、查看安装说明,作好相应的准备工作: [root@AS4 src]# cd vsftpd-2.0.5 [root@AS4 vsftpd-2.0.5]# more INSTALL -----查看安装帮助文件 INSTALL ======= This file details how to build and install / run vsftpd from the vsftpd distribution .tar.gz file. Step 1) Build vsftpd. Switch to the directory created when you unpacked the vsftpd .tar.gz file. e.g.: cd vsftpd-1.1.2 edit "builddefs.h" to handle compile-time settings (tcp_wrappers build,ssl,etc). Just type "make" (and mail me to fix it if it doesn''t build ;-). This should produce you a vsftpd binary. You can test for this, e.g.: [chris@localhost vsftpd]$ ls -l vsftpd -rwxrwxr-x 1 chris chris 61748 Sep 27 00:26 vsftpd ----编译后产生的二进制文件 Step 2) Satisfy vsftpd pre-requisites 2a) vsftpd needs the user "nobody" in the default configuration. Add this user in case it does not already exist. e.g.: [root@localhost root]# useradd nobody useradd: user nobody exists 2b) vsftpd needs the (empty) directory /usr/share/empty in the default configuration. Add this directory in case it does not already exist. e.g.: [root@localhost root]# mkdir /usr/share/empty/ mkdir: cannot create directory `/usr/share/empty'': File exists 2c) For anonymous FTP, you will need the user "ftp" to exist, and have a valid home directory (which is NOT owned or writable by the user "ftp"). The following commands could be used to set up the user "ftp" if you do not have one: [root@localhost root]# mkdir /var/ftp/ [root@localhost root]# useradd -d /var/ftp ftp (the next two are useful to run even if the user "ftp" already exists).

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号