LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1030|回复: 9

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

[复制链接]
发表于 2003-12-1 02:23:13 | 显示全部楼层 |阅读模式
看了精华帖子,设置一样,但是还是不能匿名访问,提示login失败```密码错误```
发表于 2003-12-1 03:56:08 | 显示全部楼层

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

最初由 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.cn]
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>





下面是配制文件

  1. # This is a basic ProFTPD configuration file (rename it to
  2. # 'proftpd.conf' for actual use.  It establishes a single server
  3. # and a single anonymous login.  It assumes that you have a user/group
  4. # "nobody" and "ftp" for normal operation and anon.

  5. ServerName                      "ProFTPD Default Installation"
  6. ServerType                      standalone
  7. DefaultServer                   on

  8. # Port 21 is the standard FTP port.
  9. Port                            21

  10. # Umask 022 is a good standard umask to prevent new dirs and files
  11. # from being group and world writable.
  12. Umask                           022

  13. # To prevent DoS attacks, set the maximum number of child processes
  14. # to 30.  If you need to allow more than 30 concurrent connections
  15. # at once, simply increase this value.  Note that this ONLY works
  16. # in standalone mode, in inetd mode you should use an inetd server
  17. # that allows you to limit maximum number of processes per service
  18. # (such as xinetd).
  19. MaxInstances                    30

  20. # Set the user and group under which the server will run.

  21. User                            nobody
  22. Group                          nogroup

  23. # To cause every FTP user to be "jailed" (chrooted) into their home
  24. # directory, uncomment this line.
  25. #DefaultRoot ~

  26. # Normally, we want files to be overwriteable.
  27. <Directory />
  28.   AllowOverwrite                on
  29. </Directory>
  30.                                                                                                                
  31. # A basic anonymous configuration, no upload directories.  If you do not
  32. # want anonymous users, simply delete this entire <Anonymous> section.
  33. <Anonymous ~ftp>
  34.   User                          ftp
  35.   Group                         ftp
  36.                                                                                                                
  37.   # We want clients to be able to login with "anonymous" as well as "ftp"
  38.   UserAlias                     anonymous ftp
  39.                                                                                                                
  40.   # Limit the maximum number of anonymous logins
  41.   MaxClients                    10
  42.                                                                                                                
  43.   # We want 'welcome.msg' displayed at login, and '.message' displayed
  44.   # in each newly chdired directory.
  45.   DisplayLogin                  welcome.msg
  46.   DisplayFirstChdir             .message
  47.                                                                                                                
  48.   # Limit WRITE everywhere in the anonymous chroot
  49.   <Limit WRITE>
  50.     DenyAll
  51.   </Limit>
  52. </Anonymous>
复制代码

发表于 2003-12-1 18:13:53 | 显示全部楼层
用户名:ftp
密码:ftp
发表于 2003-12-9 17:45:44 | 显示全部楼层
[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.cn]
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:验证一次密码

老大!!!不对阿!
我输入ftp居然报错!

530-unable to set anonymous privileges.
530 login incorrect login failed
remote system type is unix using binary mode to transfer files

怎么回事呢???帮忙看看!我还是初学者!!所以搞不懂!!!

还有怎么没有交如何开账户和组的文章呢???

初学好多问题都搞不明白!!!
发表于 2003-12-9 18:00:45 | 显示全部楼层
配置文件里加上:
<Anonymous ~ftp>
  User                          ftp
  Group                         ftp

UserAlias                     anonymous ftp
发表于 2003-12-9 18:12:06 | 显示全部楼层
加上了啊!不好用!!!!
发表于 2003-12-9 18:25:07 | 显示全部楼层
是不是目录权限的问题??

我在图形界面下
/homem目录下用root创建了一个ftp的目录
然后又指定了
<Anonymous homr/ftp>
User ftp
Group ftp

UserAlias anonymous ftp
是不是这出错了??

如果是那么请问该如何在home下创建一个目录可以让匿名用户登陆呢??

我现在就是不知道该如何创建用户和组以及他们可以对目录的访问权限该如何建立??用那些方法和指令??如何查询自己都创建了那些用户和组以及对目录权限?如何看到proftp的日志???

大家帮帮忙!!!
发表于 2003-12-10 08:58:08 | 显示全部楼层
斑竹呢???给看看!!!解答一下!
发表于 2003-12-10 10:31:02 | 显示全部楼层
最初由 flook 发表
斑竹呢???给看看!!!解答一下!


就是权限的问题。
改变权限。
chmod -R 755 你所改的目录名
发表于 2003-12-10 10:34:42 | 显示全部楼层
谢谢老大!!!

我已经搞定了!!!

原来这个问题还要涉及到uid和gid这方面的知识!!初学者见笑了!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表