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 目录里找到其他的配置文件,根据你的需要 。
#
# 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 //可以根据你的需要修改
# 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 //最大连接数
# 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
推荐阅读
- 梨的糖分含量高吗 梨的糖分含量高不高
- 棉花伏蚜的发生与防治技术
- 怎么和导师讨论论文选题
- 华为mate20pro中一键换机的操作方法
- 什么地方被称为世界屋脊的屋脊
- 待机时间超短
- 小番茄的功效与作用 小番茄的禁忌
- 土钉墙和锚杆的区别
- 劳动法哺乳期规定多长时间
- vivox27进行调整时间的操作教程