日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

proftp 1.2.9的基本安裝手冊( 五 )


README.PAM configure

# ./configure --prefix=/usr/local/proftp //這個時候你需要GCC的支持,如果沒有GCC肯定編譯不了的啊/usr/local/proftp是你指定的以后INSTALL的目錄
# make
# make install //進行安裝


III.Sample-Configurations

# pwd
/usr/local/proftp/etc //配置文件的目錄
Default configuretion is basic conf.( basic.conf、mod_sql.conf、anonymous.conf、complex-virtual.conf、virtual.conf in proftpd-1.2.9/sample-configurations //文件配置是有個模板的,默認的是basic conf,你可以從你的proftpd-1.2.9/sample-configurations 目錄里找到其他的配置文件,根據(jù)你的需要 。
#
# more
#more proftpd.conf
# 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 "C.Arthur FTP Server" //你配置的服務器名字哦
ServerType standalone //standalone還是inetd方式
DefaultServer on

# Port 21 is the standard FTP port.
Port 21 //可以根據(jù)你的需要修改

# 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 limit maximum number of processes per service
# (such as xinetd).
MaxInstances 30 //最大連接數(shù)

# Set the user and group under which the server will run.
User nobody
Group nogroup

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~ //限制用戶FTP的目錄

# Normally, we want files to be overwriteable. //限制對目錄的權限

AllowOverwrite on


# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entiresection.//匿名訪問

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 //限制寫的權限可以針對IP地址的限制

DenyAll


#

IIII.Start

# /usr/local/sbin/proftpd start //正常啟動方式,也可以使用debug方式診斷
#
# ps -e | grep proftpd
458 ? 0:00 proftpd
# groupadd ftp
# useradd -u 1111 -g ftp -d /export/home/arthur -c "ftpuser" -m -s /bin/sh arthur
6 blocks
# passwd arthur
New passWord:
Re-enter new password:
passwd (SYSTEM): passwd successfully changed for arthur

On windown clinet run ftp 192.168.0.10
Connected to 192.168.0.10.
220 ProFTPD 1.2.9 Server (C.Arthur Ftp Server) [u10]
Name (192.168.0.10:root):

IIII.FAQ

1. ProFTPD doesn"t seem to work.

Starting ProFTPD in standalone mode it doesn"t show in "ps" It could be many things, possibly something like not running

ProFTPD as root (it needs to be run as root initially, but will switch to a non-privileged user). Regardless, ProFTPD logs

all errors via the standard syslog mechanism. You need to check your system logs in order to determine what the problem is.

It doesn"t work!
There are many times when there"s a completely random problem which appears to be insoluble. The best place to ask for help

推薦閱讀