由 seahorse 在 12-13-2002 15:11 发表:
我的proftpd为何linux用户无法的登陆?
使用/usr/local/sbin/proftpd -d9 -n进行调试的时候,指明送入mod_unixpw模块,授权不通过,请问为何?
以下是我的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 "SeahorseFTP"
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.
1<directory *="">
2
3AllowOverwrite on
4
5</directory>
A basic anonymous configuration, no upload directories.
1<anonymous ftp="">
2
3
4
5User ftp
6
7Group ftp
8
9
10
11# We want clients to be able to login with "anonymous" as well as "ftp"
12
13
14
15UserAlias anonymous ftp
16
17
18
19# Limit the maximum number of anonymous logins
20
21
22
23MaxClients 10
24
25
26
27# We ! ;want 'welcome.msg' displayed at login, and '.message' displayed
28
29# in each newly chdired directory.
30
31
32
33DisplayLogin welcome.msg
34
35DisplayFirstChdir .message
36
37
38
39# Limit WRITE everywhere in the anonymous chroot
40
41
42
43<limit write="">
44
45AllowAll
46
47</limit>
48</anonymous>
DefaultRoot ~ ftpusers
由 Glue 在 12-13-2002 19:56 发表:
只有最后一行DefaultRoot似乎有点不妥。
你去掉试试看。
-_-
由 seahorse 在 12-13-2002 20:17 发表:
去掉了,还是不行的,我的log
192.168.0.101 UNKNOWN nobody [13/Dec/2002:18:40:32 -0500] "USER root" 331 -
192.168.0.101 UNKNOWN nobody [13/Dec/2002:18:40:34 -0500] "PASS (hidden)" 530 -
192.168.0.101 UNKNOWN nobody [13/Dec/2002:18:41:29 -0500] "USER root" 331 -
192.168.0.101 UNKNOWN nobody [13/Dec/2002:18:41:31 -0500] "PASS (hidden)" 530 -
192.168.0.101 UNKNOWN nobody [13/Dec/2002:18:44:37 -0500] "QUIT " 221 -
192.168.0.101 UNKNOWN nobody [13/Dec/2002:18:52:17 -0500] "USER root" 331 -
192.168.0.101 UNKNOWN nobody [13/Dec/2002:18:52:21 -0500] "PASS (hidden)" 530 -
192.168.0.101 UNKNOWN nobody [13/Dec/2002:18:53:08 -0500] "QUIT " 221 -
~
由 seahorse 在 12-13-2002 20:24 发表:
此时我已经将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 "SeahorseFTP"
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
AuthPAM off
AuthPAMAuthoritative off
AuthUserFile /etc/passwd
AuthGroupFile /etc/group
ExtendedLog /var/log/proftpd.log