自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Ubuntu下安裝ProFTPD小結(jié)

運(yùn)維 系統(tǒng)運(yùn)維
Ubuntu安裝ProFTPD:ProFTPD是一個(gè)Unix平臺(tái)上或是類(lèi)Unix平臺(tái)上的FTP服務(wù)器程序任何人只要遵守GPL版權(quán)聲明,都可以隨意修改源始碼。本文講述的就是Ubuntu下安裝ProFTPD的過(guò)程總結(jié)。

  Ubuntu下安裝ProFTPD小結(jié):在Ubuntu Linux上安裝了ProFTPD,總結(jié)了一下自己的安裝過(guò)程。

  1. 配置運(yùn)行ProFTPD的方法

  1.   ServerType inetd  
  2.  
  3.   # Set the user and group that the server normally runs at.  
  4.  
  5.   User nobody  
  6.  
  7.   Group nobody  
  8.  

  如果ServerType選擇了inetd,/etc/init.d/proftpd start,就會(huì)報(bào)錯(cuò),因?yàn)槟氵x擇了inetd運(yùn)行。

  ProFTPd warning: cannot start neither in standalone nor in inetd/xinetd mode. Check your configuration.

  若要手動(dòng)執(zhí)行ProFTPD, 要把 ServerType 設(shè)成 standalone才行。

  2. NIS認(rèn)證

  /etc/nsswitch.conf 必須有nis服務(wù)

  1.   # Users require a valid shell listed in /etc/shells to login.  
  2.  
  3.   # Use this directive to release that constrain.  
  4.  
  5.   # RequireValidShells off  
  6.  

  必須把NIS Sever傳過(guò)來(lái)的shell信息/usr/local/bin/bash,放在/etc/shells列表才行,否則視為invalid shell。

  另外,也可以在/etc/passwd文件中的對(duì)應(yīng)shell的那個(gè)field直接進(jìn)行修改為/bin/bash,則忽略遠(yuǎn)端傳過(guò)來(lái)的shell信息。

  還有一個(gè)很重要的設(shè)置,

  1.   # Uncomment this if you are using NIS or LDAP to retrieve passwords:  
  2.  
  3.   PersistentPasswd off  
  4.  

  PersistentPasswd 如果設(shè)置為on,就只檢查/etc/passwd里面的user account,不要用uncomment,要用上述語(yǔ)句,切記!

  3. xinet啟動(dòng)ProFTPD

  1.   # Set the user and group that the server normally runs at.  
  2.  
  3.   User root  
  4.  
  5.   Group root  
  6.  

  建立/etc/xinetd.d/proftpd,然后編輯如下內(nèi)容。

  1.   service ftp  
  2.  
  3.   {  
  4.  
  5.   disable = no 
  6.  
  7.   flags =REUSE 
  8.  
  9.   socket_type = stream 
  10.  
  11.   wait = no 
  12.  
  13.   user = root 
  14.  
  15.   server = /usr/sbin/proftpd  
  16.  
  17.   server_args = -c /etc/proftpd/proftpd.conf  
  18.  
  19.   log_on_success += DURATION USERID  
  20.  
  21.   log_on_failure += USERID  
  22.  
  23.   }  
  24.  

  保存之后,chmod +x proftpd。

  這樣Ubuntu下安裝ProFTPD小結(jié)就大功告成了,大家學(xué)習(xí)得如何呢?

【編輯推薦】

責(zé)任編輯:zhaolei 來(lái)源: CSDN
相關(guān)推薦

2011-02-25 14:35:06

ubuntuproftp安裝

2011-03-03 14:47:35

2011-03-03 14:47:35

2011-03-03 09:04:25

2011-02-23 09:47:07

UbuntuProFTPdMySQL

2011-02-23 09:47:07

2011-03-08 17:04:10

ProFTPDUbuntu

2011-02-22 16:24:30

2011-03-03 13:32:07

Proftpd安裝

2011-03-02 09:26:26

ubuntuproftpd

2011-02-25 15:38:12

ProftpdRedHat

2011-02-25 15:38:58

2011-02-25 15:55:25

unixProftpd

2011-03-08 10:10:37

Linuxproftpd

2009-06-03 16:54:00

Ubuntu安裝eclEclipseUbuntu

2011-02-25 09:44:51

怎樣安裝Proftpd

2011-02-22 09:50:01

2011-03-03 13:07:13

安裝Proftpd

2011-03-14 13:07:23

Ubuntu安裝LAMP

2011-01-18 18:21:44

Ubuntu安裝Thunderbird
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)