Linux操作系统下安装ProFTPD

分类: Linux服务器   出处:iocblog整理  更新时间:2008-12-18   添加到收藏  

  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信息。
 
  还有一个很重要的设置,[来源www.iocblog.net]
 
  # 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!
 [来源www.iocblog.net]


Tag: ProFTPD



文章整理:iocblog
版权申明:本站文章均来自网络,如有侵权,请联系我们,我们收到后立即删除,谢谢!
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有。