由 silver810212 在 12-14-2002 13:21 发表:
proftp问题,帮我看看。
[root@silver init.d]# ls
aep1000 firstboot isdn network postgresql single tWnn
anacron functions kdcrotate nfs proftpd smb winbind
apmd gpm keytable nfslock pxe snmpd xfs
atd halt killall nscd random snmptrapd xinetd
autofs httpd kudzu ntpd rawdevices squid ypbind
bcm5820 innd lpd pcmcia rhnsd sshd yppasswdd
crond iptables named portmap saslauthd syslog ypserv
cWnn irda netfs postfix sendmail tux ypxfrd
[root@silver root]# /etc/rc.d/init.d/proftpd start
Starting proftpd: execvp: No such file or directory
[失败]
我的/usr/local/etc/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 "LJ-silver's ProFTPD FTP服务器"
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 that the server normally runs at.
User nobody
Group nobody
Normally, we want files to be overwriteable.
1<directory *="">
2
3AllowOverwrite on
4
5</directory>
1<anonymous ftp="" win="">
2
3# A basic anonymous configuration, no upload directories.
4
5
6
7User ftp
8
9Group ftp
10
11UserAlias anonymous ftp
12
13# We want clients to be able to login with "anonymous" as well as "ftp"
14
15
16
17# Limit the maximum number of anonymous logins
18
19MaxClients 10
20
21
22
23# We want 'welcome.msg' displayed at login, and '.message' displayed
24
25# in each newly chdired directory.
26
27DisplayLogin welcome.msg
28
29DisplayFirstChdir .message
30
31
32
33# Limit WRITE everywhere in the anonymous chroot
34
35
36
37
38
39MaxClients 5 "Sorry, max %m users -- try again later"
40
41UserAlias anonymous ftp
42
43
44
45
46
47RequireValidShell off
48
49<limit write="">
50
51DenyAll
52
53</limit>
54<directory *="" ftp="" uploads="" win="">
55
56
57
58AllowAll
59
60
61
62</directory>
63</anonymous>
生命不息,学习不止!
你帮助我,我也帮助你。
由 weizhishu 在 12-14-2002 13:31 发表:
你编译安装时可能没有prefix参数。
看看proftpd的执行文件是不是装到了/usr/bin或者是/usr/sbin下。
由 silver810212 在 12-14-2002 14:05 发表:
我的proftp已经开始服务了。但不能匿名登陆,用户名用anonymous和ftp都试过了,密码无论敲什么都不行。
[root@silver sbin]# ftp 192.168.0.100
Connected to 192.168.0.100 (192.168.0.100).
220 ProFTPD 1.2.6 Server (LJ-silver's ProFTPD FTP服务器) [silver]
Name (192.168.0.100:root): ftp
331 Password required for ftp.
Password:
530 Login incorrect.
Login failed.
ftp> close
221 Goodbye.
ftp> open 192.168.0.100
Connected to 192.168.0.100 (192.168.0.100).
220 ProFTPD 1.2.6 Server (LJ-silver's ProFTPD FTP服务器) [silver]
Name (192.168.0.100:root): anonymous
331 Password required for anonymous.
Password:
530 Login incorrect.
Login failed.
ftp>
生命不息,学习不止!
你帮助我,我也帮助你。
由 weizhishu 在 12-14-2002 14:16 发表:
/win/ftp
这个目录的权限有没有问题?
在
1<anonymous>的小节中加入:
2
3RequireValidShell off
4
5加最好把tail -f /var/log/messages的信息贴出来看看。
6
7
8
9
10* * *
11
12
13_由 silver810212 在 12-14-2002 14:21 发表:_
14
15
16
17****
18
19
20
21
22
23[root@silver sbin]# tail -f /var/log/messages
24
25Dec 14 14:03:35 silver proftpd[1690]: silver (192.168.0.100[192.168.0.100]) - PA M(ftp): Authentication failure.
26
27Dec 14 14:03:40 silver proftpd[1690]: silver (192.168.0.100[192.168.0.100]) - FT P session closed.
28
29Dec 14 14:03:50 silver proftpd[1693]: silver (192.168.0.100[192.168.0.100]) - FT P session opened.
30
31Dec 14 14:04:10 silver proftpd[1693]: silver (192.168.0.100[192.168.0.100]) - PA M(ftp): Authentication failure.
32
33Dec 14 14:08:50 silver proftpd[1693]: silver (192.168.0.100[192.168.0.100]) - FT P no transfer timeout, disconnected.
34
35Dec 14 14:11:46 silver proftpd[1699]: silver - Failed binding to 0.0.0.0, port 2 1: Address already in use
36
37Dec 14 14:11:46 silver proftpd[1699]: silver - Check the ServerType directive to ensure you are configured correctly.
38
39Dec 14 14:11:54 silver proftpd[1701]: silver (192.168.0.100[192.168.0.100]) - FT P session opened.
40
41Dec 14 14:12:00 silver proftpd[1701]: silver (192.168.0.100[192.168.0.100]) - PA M(ftp): Authentication failure.
42
43Dec 14 14:13:08 silver proftpd[1701]: silver (192.168.0.100[192.168.0.100]) - FT P session closed.
44
45__________________
46
47生命不息,学习不止!
48
49你帮助我,我也帮助你。
50
51
52
53MSN:[email protected]
54
55
56
57
58* * *
59
60
61_由 aiks 在 12-15-2002 12:39 发表:_
62
63
64
65**其他新建的用户能登陆吗 ?**
66
67
68
69
70
71其他新建的用户能登陆吗 ?
72
73
74
75
76* * *
77
78
79_由 silver810212 在 12-15-2002 13:44 发表:_
80
81
82
83**Re: 其他新建的用户能登陆吗 ?**
84
85
86
87
88
89<bl</anonymous>