- 论坛徽章:
- 0
|
我安装的是proftpd1.2.9.安装的时候就出现./configure的报错,'"can not compute sizeof short".后来查configure.log发现是gcc的-O选项的影响(据说是gcc 2.9.6以上的版本对Intel platform的优化存在bugs)。去掉configure的-O选项后,安装完毕,并按照sfz103的初学笔记和张微波的笔记进行了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 "ProFTPD Default Installation"
- 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 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 nobody
- # To cause every FTP user to be "jailed" (chrooted) into their home
- # directory, uncomment this line.
- DefaultRoot ~ftpusers
- # Support retrieve
- AllowRetrieveRestart on
- # Normally, we want files to be overwriteable.
- <Directory />;
- AllowOverwrite on
- AllowStoreRestart on
- </Directory>;
- <Directory /home/kaoyan>;
- <Limit WRITE>;
- DenyUser kaoyan
- </Limit>;
- <Limit RMD RNFR DELE RETR>;
- DenyUser upload
- </Limit>;
- TransferRate RETR 50 user kaoyan
- TransferRate STOR 100 user upload
- </Directory>;
- # A basic anonymous configuration, no upload directories. If you do not
- # want anonymous users, simply delete this entire <Anonymous>; section.
- <Anonymous ~ftp>;
- 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
- <Limit WRITE>;
- DenyAll
- </Limit>;
- </Anonymous>;
复制代码
restart proftpd,用ps -A查看 有proftpd进程,用netstat -ln查看,端口21也开启了。但是在局域网内另一个机器(winXP)上,用leapftp登陆,显示错误是"Error:connection reset by peer".用C:\ftp连接,显示错误是“ftp:connect:未知错误”。在另一台linux上用ftp连接,显示错误是"ftp:connection refused".这么多错误到底是什么原因啊?stop proftpd后,用leapftp登陆,错误是一样的,好象proftpd就没启动似的,但用/sbin/service --status-all查看,结果如下:
- anacron 已死,但是 subsys 被锁
- atd (pid 3394) 正在运行...
- 已配置的挂载点:
- ------------------------
-
- 活跃挂载点:
- --------------------
- crond (pid 3302) 正在运行...
- cupsd (pid 3313) 正在运行...
- gpm (pid 3284) 正在运行...
- httpd 已停
- 表格:filter
- Chain INPUT (policy ACCEPT)
- target prot opt source destination
- RH-Lokkit-0-50-INPUT all -- anywhere anywhere
-
- Chain FORWARD (policy ACCEPT)
- target prot opt source destination
- RH-Lokkit-0-50-INPUT all -- anywhere anywhere
-
- Chain OUTPUT (policy ACCEPT)
- target prot opt source destination
-
- Chain RH-Lokkit-0-50-INPUT (2 references)
- target prot opt source destination
- ACCEPT udp -- dns.jlu.edu.cn anywhere udp spt:domain dpts:1025:65535
- ACCEPT all -- anywhere anywhere
- REJECT tcp -- anywhere anywhere tcp dpts:0:1023 flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
- REJECT tcp -- anywhere anywhere tcp dpt:nfs flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
- REJECT udp -- anywhere anywhere udp dpts:0:1023 reject-with icmp-port-unreachable
- REJECT udp -- anywhere anywhere udp dpt:nfs reject-with icmp-port-unreachable
- REJECT tcp -- anywhere anywhere tcp dpts:x11:6009 flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
- REJECT tcp -- anywhere anywhere tcp dpt:xfs flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
- irattach 已停
- 该软件包无状态信息
- lisa 已停
- 配置设备:
- lo eth0
- 当前的活跃设备:
- lo eth0
- rpc.mountd 已停
- nfsd 已停
- rpc.rquotad 已停
- rpc.statd (pid 3137) 正在运行...
- nscd 已停
- ntpd 已停
- portmap (pid 3118) 正在运行...
- proftpd (pid 4631) 正在运行...
- 随机数据源已存在
- saslauthd 已停
- sendmail (pid 3274 3265) 正在运行...
- smbd 已停
- nmbd 已停
- sshd (pid 3230) 正在运行...
- syslogd (pid 3104) 正在运行...
- klogd (pid 3108) 正在运行...
- winbindd 已停
- xfs (pid 3376) 正在运行...
- xinetd (pid 3244) 正在运行...
- ypbind 已停
复制代码
不知道这么多问题是什么原因造成的,希望有人能给点建议,十分感激。 |
|