免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1400 | 回复: 2
打印 上一主题 下一主题

[FTP] proftpd问题:一般用户无法login,但匿名可以 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-11-13 19:40 |只看该作者 |倒序浏览
proftpd版本为1.2.8(stable),即时Linux7.0 server所带

proftpd问题:一般用户无法login,但匿名可以

过程如下:

1.建立用户abc,宿主目录为/var/www/www.abc.com,权限为755;所属组为ftp,shell为/sbin/nologin;使用passwd abc设置口令

2.启动proftpd服务后,ftp ip地址后出现已联接到该ip地址, 500 AUTH not understood,然后提示输入用户名及口令

3.输入abc及口令,提示登录失败. (若输入匿名则可以进入)

请各位帮助解决.这里多谢了! ( 下面附上/etc/proftpd.conf内容)

# This is the ProFTPD configuration file
# $Id: proftpd.conf,v 1.5 2003/03/13 18:00:04 dude Exp $

ServerName   "ProFTPD server"
ServerIdent   on "FTP Server ready."
ServerAdmin   root@localhost
ServerType   standalone
#ServerType   inetd
DefaultServer   on
AccessGrantMsg   "User %u logged in."
#DisplayConnect   /etc/ftpissue
#DisplayLogin   /etc/ftpmotd
#DisplayGoAway   /etc/ftpgoaway
DeferWelcome   off

# Use this to excude users from the chroot
DefaultRoot   ~ !adm

# Use pam to authenticate by default
AuthPAMAuthoritative  on

# Do not perform ident nor DNS lookups (hangs when the port is filtered)
IdentLookups   off
UseReverseDNS   off

# 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

# Default to show dot files in directory listings
ListOptions   "-a"

# See Configuration.html for these (here are the default values)
#MultilineRFC2228  off
#RootLogin   off
#LoginPasswordPrompt  on
#MaxLoginAttempts  3
#MaxClientsPerHost  none
#AllowForeignAddress  off # For FXP

# Allow to resume not only the downloads but the uploads too
AllowRetrieveRestart  on
AllowStoreRestart  on

# 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   20

# Set the user and group that the server normally runs at.
User           abc
Group           ftp

# This is where we want to put the pid file
ScoreboardFile   /var/run/proftpd.score

# Normally, we want users to do a few things.
<Global>
  AllowOverwrite  yes
  <Limit ALL SITE_CHMOD>
    AllowAll
  </Limit>
</Global>

# Define the log formats
LogFormat   default "%h %l %u %t "%r" %s %b"
LogFormat   auth "%v [%P] %h %t "%r" %s"

# A basic anonymous configuration, with an upload directory.
<Anonymous ~ftp>
  User    ftp
  Group    ftp
  AccessGrantMsg  "Anonymous login ok, restrictions apply."

  # 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 "Sorry, max %m users -- try again later"

  # Put the user into /pub right after login
  #DefaultChdir   /pub

  # We want 'welcome.msg' displayed at login, '.message' displayed in
  # each newly chdired directory and tell users to read README* files.
  DisplayLogin   /welcome.msg
  DisplayFirstChdir  .message
  DisplayReadme   README*

  # Some more cosmetic and not vital stuff
  DirFakeUser   on ftpadm
DirFakeGroup   on ftpadm

#  # Limit WRITE everywhere in the anonymous chroot
#  <Limit WRITE SITE_CHMOD>
#    DenyAll
#  </Limit>
#
#  # An upload directory that allows storing files but not retrieving
#  # or creating directories.
#  <Directory uploads/*>
#    AllowOverwrite  no
#    <Limit READ>
#      DenyAll
#    </Limit>
#
#    <Limit STOR>
#      AllowAll
#    </Limit>
#  </Directory>
#
#  # Don't write anonymous accesses to the system wtmp file (good idea!)
#  WtmpLog   off
#
#  # Logging for the anonymous transfers
#  ExtendedLog  /var/log/proftpd/access.log WRITE,READ default
#  ExtendedLog  /var/log/proftpd/auth.log AUTH auth
#
</Anonymous>

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
2 [报告]
发表于 2005-11-13 20:02 |只看该作者
看看 http://www.proftpd.org/docs/example-conf.html 这里的演示配置。

论坛徽章:
0
3 [报告]
发表于 2005-11-13 23:44 |只看该作者
加上调试参数启动proftpd
proftpd -nd9

看有什么信息输出?

http://www.castaglia.org/proftpd ... OWTO-Debugging.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP