proftpd-1.2.9 匿名访问不来?!!

由 happy2000mt 在 12-01-2003 02:23 发表:

proftpd-1.2.9 匿名访问不来?!!

看了精华帖子,设置一样,但是还是不能匿名访问,提示login失败密码错误


Fedora Core 2.0 (Kernel 2.6.6)

Epox 8RDA3+

Athlon XP 2500+

DDR333 512M

Geforce MX440 SE

Seagate 7200.7 80G


由 北南南北 在 12-01-2003 03:56 发表:

回复: proftpd-1.2.9 匿名访问不来?!!

> quote: > > * * * > > 最初由 happy2000mt 发表
>
> 看了精华帖子,设置一样,但是还是不能匿名访问,提示login失败密码错误 > > * * *

不太可能吧,哈哈,我今天刚把proftpd安装上,就能用了。只是设置的一个问题

要根据配制文件的提示来建一个用户nobody和一个组nogroup

[root@linuxsir01 ftp]# /usr/sbin/groupadd nogroup

[root@linuxsir01 ftp]# /usr/sbin/useradd nobody

useradd: user nobody exists

[root@linuxsir01 ftp]#

然后启动proftpd,进入proftpd守护进程所在的目录,执行,比如我把proftpd安装到了/opt/proftpd这个目录中,我就应该执行

[root@linuxsir01 ftp]# /opt/proftpd/sbin/proftpd

是不是启动了呢??

[root@linuxsir01 ftp]# ps -aux | grep proftpd

nobody 852 0.0 0.3 4036 1296 ? S 03:12 0:00 proftpd: (accepting connections)

root 1127 0.0 0.1 6324 652 pts/1 S 03:51 0:00 grep proftpd

然后用登入ftp来试一试。在字符模式下:

[root@linuxsir01 ftp]# pgrep proftpd

852

[root@linuxsir01 ftp]# ftp 192.168.0.1

Connected to 192.168.0.1.

220 ProFTPD 1.2.9 Server (ProFTPD Default Installation) [linuxsir01.linuxsir.org]

500 AUTH not understood

500 AUTH not understood

KERBEROS_V4 rejected as an authentication type

Name (192.168.0.1:root): ftp 在这里输入ftp,匿名用户,在字符模式下用户名都是ftp,如果您没有特殊指定的话;

331 Anonymous login ok, send your complete email address as your password. 密码也是ftp

Password: 验证一次密码

230-欢迎来到LinuxSir.Org

希望您能把最好的软件发布到LinuxSir.Org的FTP上

多谢

LinuxSir.Org 小组呈上:

230 Anonymous access granted, restrictions apply.

Remote system type is UNIX.

Using binary mode to transfer files.

ftp>

下面是配制文件

> > 源码: >
> * * * >
>
> > > # 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 nogroup
> > >
> > > # To cause every FTP user to be "jailed" (chrooted) into their home
> > > # directory, uncomment this line.
> > > #DefaultRoot ~
> > >
> > > # Normally, we want files to be overwriteable.
> > >

1<directory></directory>

> > > AllowOverwrite on
> > > > > >
> > > # A basic anonymous configuration, no upload directories. If you do not
> > > # want anonymous users, simply delete this entire

  1<anonymous> section.  
  2&gt;     &gt; 
  3&gt;     <anonymous ~ftp="">  
  4&gt;     &gt; 
  5&gt;       User                          ftp  
  6&gt;     &gt; 
  7&gt;       Group                         ftp  
  8&gt;     &gt; 
  9&gt;       
 10&gt;     &gt; 
 11&gt;       # We want clients to be able to login with "anonymous" as well as "ftp"  
 12&gt;     &gt; 
 13&gt;       UserAlias                     anonymous ftp  
 14&gt;     &gt; 
 15&gt;       
 16&gt;     &gt; 
 17&gt;       # Limit the maximum number of anonymous logins  
 18&gt;     &gt; 
 19&gt;       MaxClients                    10  
 20&gt;     &gt; 
 21&gt;       
 22&gt;     &gt; 
 23&gt;       # We want 'welcome.msg' displayed at login, and '.message' displayed  
 24&gt;     &gt; 
 25&gt;       # in each newly chdired directory.  
 26&gt;     &gt; 
 27&gt;       DisplayLogin                  welcome.msg  
 28&gt;     &gt; 
 29&gt;       DisplayFirstChdir             .message  
 30&gt;     &gt; 
 31&gt;       
 32&gt;     &gt; 
 33&gt;       # Limit WRITE everywhere in the anonymous chroot  
 34&gt;     &gt; 
 35&gt;       <limit write="">  
 36&gt;     &gt; 
 37&gt;         DenyAll  
 38&gt;     &gt; 
 39&gt;       </limit>  
 40&gt;     &gt; 
 41&gt;     </anonymous>  
 42&gt;     &gt; 
 43&gt;     
 44&gt;     
 45&gt;     * * *
 46
 47  
 48  
 49
 50
 51__________________   
 52  
 53===========================   
 54  
 55请弟兄们发帖时要写个好标题,多谢!   
 56  
 57===========================   
 58  
 59每天以1000KM/H的速度在跑,感觉还是时间不够:(   
 60  
 61“西学东渐,洋为中用” + 创造 = ?   
 62  
 63linux ppc 
 64
 65  
 66
 67
 68* * *
 69
 70  
 71_由 harrypotter 在 12-01-2003 18:13 发表:_   
 72  
 73
 74
 75****
 76
 77  
 78  
 79
 80
 81用户名:ftp   
 82  
 83密码:ftp 
 84
 85__________________   
 86  
 87Harry Potter LOTR GnOmE!   
 88  
 89*********************   
 90  
 91新机子:p4c-1.7+512DDR+40G(Fedora Core 1:15G)+ac97+geforce2MX400   
 92  
 93*********************   
 94  
 95http://freshmeat.net/projects/mydiary/ 
 96
 97  
 98
 99
100* * *
101
102  
103_由 flook 在 12-09-2003 17:45 发表:_   
104  
105
106
107****
108
109  
110  
111
112
113[root@linuxsir01 ftp]# pgrep proftpd   
114  
115852   
116  
117[root@linuxsir01 ftp]# ftp 192.168.0.1   
118  
119Connected to 192.168.0.1.   
120  
121220 ProFTPD 1.2.9 Server (ProFTPD Default Installation) [linuxsir01.linuxsir.org]   
122  
123500 AUTH not understood   
124  
125500 AUTH not understood   
126  
127KERBEROS_V4 rejected as an authentication type   
128  
129Name (192.168.0.1:root): ftp 在这里输入ftp,匿名用户,在字符模式下用户名都是ftp,如果您没有特殊指定的话;   
130  
131331 Anonymous login ok, send your complete email address as your password.密码也是ftp   
132  
133Password:验证一次密码   
134  
135  
136  
137老大!!!不对阿!   
138  
139我输入ftp居然报错!   
140  
141  
142  
143530-unable to set anonymous privileges.   
144  
145530 login incorrect login failed   
146  
147remote system type is unix using binary mode to transfer files   
148  
149  
150  
151怎么回事呢???帮忙看看!我还是初学者!!所以搞不懂!!!   
152  
153  
154  
155还有怎么没有交如何开账户和组的文章呢???   
156  
157  
158  
159初学好多问题都搞不明白!</anonymous>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus