Linux 版 (精华区)

发信人: liangzq (萍水), 信区: Linux
标  题: proftpd 安装手记
发信站: 哈工大紫丁香 (2001年02月24日11:00:02 星期六), 站内信件


proftpd 安装手记
porftpd是一个配置方法与APACHE相类似的FTP服务器,有两种运行方
式,独立服务器与超级服务器的子服务器。无论从安全性还是稳定性还
是可配置性来说都是非常好的选择。一般来说redhat上的wu-ftp的问题太多,
为了安全起见用proftpd还好一些.
1 取得 proftpd
  http://www.proftpd.net是其公司网站上有大量资料,到
  ftp://ftp.proftpd.net/pub/proftpd/或ftp://ftp.proftpd.org/
  可以下载最新的proftpd-1.2.0rc3.tar.gz
2 安装 proftpd
 2.1 进入linux系统解开文件
   #tar proftpd-1.2.0rc3.tar.gz
   #cd proftpd-1.2.0rc3
 2.2 设定安装到/www/protpd目录中
   #./configure --prefix=/www/proftpd
   #make
   #make install
3 设定
  3.1几个文件的功能及路径
  /www/proftpd/sbin/proftpd  执行程序
  /www/proftpd/etc/proftpd.conf  设置文件
  /www/proftpd/var/proftpd.pid proftpd做为一个服务的ID号
  3.2 设定proftpd.conf文件,起动服务
     3.2.1 做为一个服务起动
     在默认的"/www/proftpd/etc/proftpd.conf/"文件中有一行文字
     "ServerType standalone",指定"/www/proftpd/sbin/proftpd"以
     一个服务的方式来工作,可以放"/www/proftpd/sbin/proftpd"到
     "/etc/rc.d/rc.local"文件中,以便开机起动.
     3.2.2 放到inetd.conf中起动
     也可以改变"ServerType standalone"为"ServerType inetd",
     并修改"/etc/inetd.conf"中的
      ftp stream tcp nowait root      /usr/sbin/in.ftpd in.ftpd
      改变为
      ftp stream tcp nowait root      /www/proftpd/sbin/proftpd proftpd
      当然也可以改为
      ftp stream tcp nowait root      /usr/sbin/tcpd /www/proftpd/sbin/proftpd
    注意做为服务器设定可以直接执行 /www/proftpd/sbin/proftpd  起动服务
    如果放在 inetd.conf文件中,就是修改完后 killall -HUP inetd
  3.3 proftpd.con 的一个简单设定及说明(proftpd文件解压后,/doc目录内有
      proftpd.conf的说明)
     #服务器的名称
     ServerName                 "ProFTPD Default Installation"
     #服务器的服务方法(系统服务/inetd连接) ServerType standalone/inetd
     ServerType                 standalone
     #默认服务
     DefaultServer                      on
     #服务器使用的port号码
     Port                               21
     #proftpd在做为服务时的用户名和组名
     User                               nobody
     Group                              ftp
     #根目录设定,可以用/home也可用~,可以使用户不能向上到根目录下
     DefaultRoot ~
     #目录的权力
     〈Directory /*>
      AllowOverwrite            on
    〈/Directory>
    #其本anonymous用户定义
    〈Anonymous ~ftp>
     User                               ftp
     Group                              ftp
     UserAlias                  anonymous ftp
     MaxClients                 10
     DisplayLogin                       welcome.msg
     DisplayFirstChdir          .message
     #注意最好加上以下这一行
     RequireValidShell            no
     #设定为只读
     〈Limit WRITE>
     DenyAll
    〈/Limit>
   〈/Anonymous>




--
※ 来源:·哈工大紫丁香 bbs.hit.edu.cn·[FROM: 202.118.239.216]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.439毫秒