歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Unix知識 >> 關於Unix

Linux工具放送Pure-FTPd初步接觸

./configure --prefix=/usr/local/pureftpd --with- mysql --with-puredb --with-shadow --with-pam --with-paranoidmsg --with-welcomemsg --with-uploadscript --with-cookie --with-virtualchroot --with-virtualhosts --with-virtua lr oot --with-diral
  ./configure --prefix=/usr/local/pureftpd --with-mysql --with-puredb --with-shadow --with-pam --with-paranoidmsg --with-welcomemsg --with-uploadscript --with-cookie --with-virtualchroot --with-virtualhosts --with-virtualroot --with-diraliases --with-quotas --with-sysquotas --with-ratios --with-ftpwho --with-throttling --with-language=simplified-chinese
  
  make
  
  make check
  
  make install
  
  mkdir /usr/local/pureftpd/etc #搞不明白為什麼系統沒建立這個文件夾
  
  cd configuration-file
  chmod u+x pure-config.pl
  cp pure-config.pl /usr/local/pureftpd/bin
  cp pure-ftpd.conf /usr/local/pureftpd/etc
  cd ..
  cp pureftpd* /usr/local/pureftpd/etc/
  
  修改pure-ftpd.conf 讓他基本使用起來,並保證基本的安全,過幾天再慢慢研究
  
  vi /usr/local/pureftpd/etc/pure-ftpd.conf
  默認的配置文件只支持匿名登錄,你只要稍微修改一下就可以支持lunix系統用戶登陸了
  
  ChrootEveryone yes
  AnonymousOnly no
  #是否只讓匿名登錄
  NoAnonymous yes
  #不開放匿名登入
  UnixAuthentication yes
  #如果你想要有簡單的Unix(/etc/passwd)的認證的話
  ProhibitDotFilesWrite no
  ProhibitDotFilesRead no
  #(”.”)開頭的文件能不能被讀/寫
  
  啟動pure-ftpd
  
  /usr/local/pureftpd/bin/pure-config.pl /usr/local/pureftpd/etc/pure-ftpd.conf

Copyright © Linux教程網 All Rights Reserved