首页 | 互联网 | IT动态 | IT培训 | Cisco | Windows | Linux | Java | .Net | Oracle | 软件测试 | C/C++ | 嵌入式开发 | 存储世界 | 服务器
网络设备 | IDC | 安全 | 求职招聘 | 数字网校 | 网页设计 | 平面设计 | 技术专题 | 电子书下载 | 教学视频 | 源码下载 | 搜索 | 博客 | 论坛
中国IT实验室Linux频道
Google
首页 入门 Linux编程 系统管理 网络管理 Linux认证 Unix/BSD Linux数据库 Linux集群 Linux手册 Linux下载 Ubuntu 论坛 专题 RSS
您现在的位置: 中国IT实验室 >> Linux >> 系统管理 >> 系统管理 >> 正文

Linux操作系统下安装ProFTPD

  1.配置运行ProFTPD的方法
 
  ServerType inetd
 
  # Set the user and group that the server normally runs at.
 
  User nobody
 
  Group nobody
 
  如果ServerType选择了inetd,/etc/init.d/proftpd start,就会报错,因为你选择了inetd运行。
 
  ProFTPd warning: cannot start neither in standalone nor in inetd/xinetd mode. Check your configuration.
 
  若要手动执行ProFTPD, 要把 ServerType 设成 standalone才行。
 
  2.NIS认证
 
  /etc/nsswitch.conf 必须有nis服务
 
  # Users require a valid shell listed in /etc/shells to login.
 
  # Use this directive to release that constrain.
 
  # RequireValidShells off
 
  必须把NIS Sever传过来的shell信息/usr/local/bin/bash,放在/etc/shells列表才行,否则视为invalid shell.
 
  另外,也可以在/etc/passwd文件中的对应shell的那个field直接进行修改为/bin/bash,则忽略远端传过来的shell信息。
 
  还有一个很重要的设置,
 
  # Uncomment this if you are using NIS or LDAP to retrieve passwords:
 
  PersistentPasswd off
 
  PersistentPasswd 如果设置为on,就只检查/etc/passwd里面的user account,不要用uncomment,要用上述语句,切记!
 
  3. xinet启动ProFTPD
 
  # Set the user and group that the server normally runs at.
 
  User root
 
  Group root
 
  建立/etc/xinetd.d/proftpd,然后编辑如下内容。
 
  service ftp
 
  {
 
  disable = no
 
  flags =REUSE
 
  socket_type = stream
 
  wait = no
 
  user = root
 
  server = /usr/sbin/proftpd
 
  server_args = -c /etc/proftpd/proftpd.conf
 
  log_on_success += DURATION USERID
 
  log_on_failure += USERID
 
  }
 
  保存之后,chmod +x proftpd
 
  Everything gonna be alright!
 
【责编:Zenghui】
中国IT教育
相关产品和培训
文章评论
 友情推荐链接
 专题推荐

 ·防范Linux病毒 打造没有病毒的乐土…
 ·Linux Shell编程实用指南…
 ·Linux日志分析与管理
 ·揭密Linux内存管理
 ·邮件服务Sendmail应用配置
 ·Linux 安全管理…
 ·Linux 下DNS服务器架设攻略…
 ·Linux 下的路由的配置与应用…
 ·专题:Apache实用手册
 ·全面剖析Linux文件系统
 今日更新
 认证培训
 频道精选
 Windows频道导航