LinuxSir.cn,穿越时空的Linuxsir!

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

配置proftp的匿名访问

[复制链接]
发表于 2004-10-9 22:17:47 | 显示全部楼层 |阅读模式
在proftpd.conf中设置匿名访问的字段如下:
<Anonymous ~ftp>
  User                          ftp
  Group                         ftp
                                                                                                                                             
  # Allow logins if they are disabled above.
  <Limit LOGIN>
    AllowAll
  </Limit>
                                                                                                                                             
  # 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>
可是连接的时候却出现下面的错误:
220 ProFTPD 1.2.10 Server (ProFTPD Default Installation) [127.0.0.1]
USER anonymous
331 Anonymous login ok, send your complete email address as your password.
PASS xxxx
530-Unable to set anonymous privileges.
530 Login incorrect.
它这里是不是说我现在系统里的ftp用户不能用啊?
这里的ftp用户似乎是安装proftp的时候安装上去的,在/etc/passwd中关于ftp的内容如下:
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
请问这是什么问题?
发表于 2004-10-31 13:09:52 | 显示全部楼层
看看ftp用户在不在/etc/ftpusers里面,如果有,注释或删除掉
发表于 2004-12-4 17:10:30 | 显示全部楼层
这里的ftp和ftp Server里的ftp 是什么关系啊,我的系统出错也是和楼主的差不多。[root@linux.cn sbin 17:10:25]#ftp linux.cn
Connected to linux.cn.
220 ProFTPD 1.2.10 Server (ProFTPD Default Installation.Welcome to my Linux) [192.168.0.8]
500 AUTH not understood
500 AUTH not understood
KERBEROS_V4 rejected as an authentication type
Name (linux.cn: ftp
331 Anonymous login ok, send your complete email address as your password.
Password:
530-Unable to set anonymous privileges.
530 Login incorrect.
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
 楼主| 发表于 2004-12-4 20:21:16 | 显示全部楼层
你给ftp用户建一个homoe目录试试。
我好像建了一个home目录就能用了
发表于 2004-12-5 13:27:11 | 显示全部楼层
我也遇见过这种问题。原因是没有配置ftp用户的家目录,或者ftp对自己的家目录没有读写权限。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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