LinuxSir.cn,穿越时空的Linuxsir!

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

proftpd的配置问题(已解决)

[复制链接]
发表于 2010-6-24 22:12:24 | 显示全部楼层 |阅读模式
今天从vsftpd转到了proftpd,因为proftpd不需要打补丁就可以支持自动字符集转换。但是匿名登录怎么都不成功。设置用的是给的sample配置文件/etc/proftpd/proftpd.conf.sample。里面说 “It establishes a single server and a single anonymous login.” 但是匿名根本就登录不了。其他用户密码登录是没有问题的。ftp用户的home目录权限也没有问题。因为vsftpd没有问题,所以我觉得肯定是proftpd的配置问题,不太可能是其他方面。有人能帮我看看么?

# This is a sample ProFTPD configuration file for Gentoo Linux (rename
# it to 'proftpd.conf' for actual use). It establishes a single server
# and a single anonymous login.

ServerName "roFTPD Default Server"
ServerType standalone
DefaultServer on
RequireValidShell off
AuthPAM off
AuthPAMConfig ftp

# Listen on the standard FTP port 21.
Port 21

# New directories and files should not be group or 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.
MaxInstances 30

# The server will run under ftp/ftp.
User ftp
Group ftp

# Every FTP sessions is "jailed" into the user's home directory.
DefaultRoot ~

# Generally files are overwritable.
AllowOverwrite on

# Disallow the use of the SITE CHMOD command.
<Limit SITE_CHMOD>
  DenyAll
</Limit>

# A basic anonymous FTP account without an upload directory.
<Anonymous ~ftp>
  User ftp
  Group ftp

  # Clients can login with the username "anonymous" and "ftp".
  UserAlias anonymous ftp

  # Limit the maximum number of parallel anonymous logins to 10.
  MaxClients 10

  # Prohibit the WRITE command for the anonymous users.
  <Limit WRITE>
    DenyAll
  </Limit>
</Anonymous>

错误信息是 “Login failed: 530-Unable to set anonymous privileges. Login incorrect.”
 楼主| 发表于 2010-6-25 09:55:46 | 显示全部楼层
搞定了,proftpd默认启用了acl的use flag,但是我挂载时没加acl。去掉acl重编译就好了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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