偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

ProFTPD 下的五大問題

運維 系統(tǒng)運維
ProFTPD是一個Unix平臺上或是類Unix平臺(如Linux, FreeBSD等)的FTP服務(wù)器程序,它是在自由軟件基金會的版權(quán)聲明下開發(fā)、發(fā)布免費的軟件,也就是說任何只要遵守自由軟件基金會版權(quán)聲明的人,都可以修改源始碼。 我們在配置和操作ProFTPD的時候,總會遇到這樣或者那樣的問題,本文主要講述了ProFTPD下的五大問題。

       以下是我在平常使用ProFTPD的時候曾經(jīng)遇到過的問題,寫出來一起學(xué)習(xí)、解答。

  1、我安裝proftpd以后,出現(xiàn)了問題,我如何調(diào)試?

  通過通過命令! /usr/local/sbin/proftpd -d9 -n啟動proftpd來進(jìn)行調(diào)試,則proftp d就會將調(diào)試信息打印到consle上以供調(diào)試之用。

  2、為什么我的proftpf啟動以后,匿名用戶不能登錄?

  查看proftp配置文件/usr/local/etc/proftpd.conf,修改為(這里/home/ftp可以是任何希望匿名用戶登錄以后的當(dāng)前根目錄,但是確保要使該目錄允許ftp用戶訪問),并且若部分的User指令指定的用戶為ftp用戶,則需要在配置文件中添加如下命令指示:

  RequireValidShell off

  3、我如何實現(xiàn)一個正常用戶登錄以后將其的訪問限定在某個目錄之下?

  可以通過指令DefaultRoot來實現(xiàn)。例如若希望將ftpusers組的用戶限定在自己的home目錄下,則需要首先創(chuàng)建該組:

  /usr/sbin/groupadd ftpusers

  然后將用戶ideal加入到該組中:

  usrmod -G ftpusers ideal

  最后在在proftpd.conf文件中添加如下內(nèi)容:

  DefaultRoot ~ ftpusers

  也可以限制用戶登錄以后僅僅訪問自己主目錄下的一個子目錄:

  Default! Root ~/anoftp ftpusers

  當(dāng)然也可以將用戶限制在其他目錄之下,而不是自己的home目錄下:

  DefaultRoot /tmp ftpusers

  也可以限定一個用戶組的某些用戶被限制,而其他不作限制:

  DefaultRoot ~ ftpusers,!empolyee

  這個指令指示僅僅限制ftpusers組中的不是empolyee組的用戶進(jìn)行限制。

  4、我如何使用戶登陸時不顯示ftp服務(wù)器版本信息,以增強(qiáng)安全性?

  在proftpd.conf中添加如下內(nèi)容:

  ServerIdent off

  則再次登錄時,顯示如下內(nèi)容:

  C:WINDOWS>ftp 192.168.2.33

  Connected to 192.168.2.33.

  220 ftpd.test.com.cn FTP server ready.

  User (192.168.2.33:(none)):

  5、在proftpd環(huán)境下如何設(shè)定虛擬主機(jī)?

  可以通過指令:VirtualHost來實現(xiàn),一個最簡單的例子:

  ServerName "virtual FTP server"

  若你僅僅希望通過匿名訪問某個虛擬主機(jī),則使用如下! 的指令:

  Serv erName "virtual FTP server"

  DenyAll

  User private

  Group private

  AllowAll

  這樣192.168.2.35的這臺主機(jī)則僅僅允許匿名登錄。

  筆者的proftpd.conf配置文件內(nèi)容為:

  # This is a basic ProFTPD configuration file (rename it to

  # 'proftpd.conf' for actual use. It establishes a single server

  # and a single anonymous login. It assumes that you have a user/group

  # "nobody" and "ftp" for normal operation and anon.

  ServerName &! quot;test.com.cn FTP Server"

  ServerType standalone

  DefaultServer on

  # Port 21 is the standard FTP port.

  Port 21

  # Umask 022 is a good standard umask to prevent new dirs and files

  # from being group and world writable.

  Umask 022

  # To prevent DoS attacks, set the maximum number of child processes

  # to 30. If you need to allow more than 30 concurrent connections

  # at once, simply increase this value. Note that this ONLY works

  # in standalone mode, in inetd mode you should use an inetd server

  # that allows you to&! nbsp;limit maximum number of processes per&nb sp;service

  # (such as xinetd)

  MaxInstances 30

  RequireValidShell off

  ServerIdent off

  # Set the user and group that the server normally runs at.

  User nobody

  Group nobody

  # Normally, we want files to be overwriteable.

  AllowOverwrite on

  # A basic anonymous configuration, no upload directories.

  User ftp

  Group ftp

  # We want clients to be able to login with "anonymous" as well as "ftp"

  UserAlias anonymous ftp

  # Limit the maximum number of anonymous logins

  MaxClients 10

  # We ! ;want 'welcome.msg' displayed at login, and '.message' displayed

  # in each newly chdired directory.

  DisplayLogin welcome.msg

  DisplayFirstChdir .message

  # Limit WRITE everywhere in the anonymous chroot

  DenyAll

  DefaultRoot ~ ftpusers

  ServerName "virtual FTP server"

  DenyAll

  User private

  Group private

  AllowAll

  以上就是我總結(jié)的在使用ProFTPD時遇到的五大共性的問題,希望能夠?qū)Υ蠹矣兴鶐椭?/p>

【編輯推薦】

  1. 怎樣配置ProFTPD服務(wù)器
  2. 如何配置proFTD
  3. 在CentOS系統(tǒng)安裝配置proftpd
  4. ProFTPD mod_tls模塊CA SSL證書驗證漏洞
  5. Linux中建立安全的ProFTPD應(yīng)用經(jīng)驗談
  6. ProFTPD STAT命令遠(yuǎn)程拒絕服務(wù)攻擊漏洞
  7. ProFTPD字符編碼SQL注入漏洞
責(zé)任編輯:zhaolei 來源: 網(wǎng)絡(luò)轉(zhuǎn)載
相關(guān)推薦

2009-11-02 16:48:45

虛擬機(jī)管理

2016-06-08 11:44:37

2015-06-02 17:05:53

軟件定義數(shù)據(jù)中心

2015-08-04 10:47:52

游戲策劃手機(jī)游戲

2009-02-06 13:05:00

服務(wù)器存儲服務(wù)器應(yīng)用

2013-06-13 10:14:41

虛擬機(jī)虛擬機(jī)遷移

2022-08-30 18:13:38

機(jī)器學(xué)習(xí)

2015-09-30 10:09:35

2013-06-13 09:54:21

虛擬機(jī)虛擬機(jī)遷移

2013-02-28 09:50:39

戴爾問題私有化

2010-09-07 13:24:18

CSS

2023-08-22 15:52:27

數(shù)字化轉(zhuǎn)型

2016-09-12 17:17:06

OpenStack云計算私有云

2012-07-04 10:27:56

虛擬化

2015-01-28 13:43:39

Android 5.0GoogleLollipop

2012-04-09 16:13:21

Android開發(fā)者

2025-03-17 07:00:00

自主式ACIO人工智能

2011-07-05 11:18:36

虛擬化容量規(guī)劃

2013-05-13 10:27:47

InteropSDNOpenDayligh

2013-09-30 10:13:42

點贊
收藏

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