LinuxSir.cn,穿越时空的Linuxsir!

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

proftpd匿名用户不能登录

[复制链接]
发表于 2006-11-12 11:07:01 | 显示全部楼层 |阅读模式
我的配置文件如下:

# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#

# Includes DSO modules
Include /etc/proftpd/modules.conf

ServerName                      "Hobby's FTP Server ^_^"
ServerType                      standalone
DeferWelcome                    off

MultilineRFC2228                on
DefaultServer                   on
ShowSymlinks                    on

TimeoutNoTransfer               600
TimeoutStalled                  600
TimeoutIdle                     1200

DisplayLogin                    .welcome.msg
DisplayFirstChdir               .message
ListOptions                     "-l"

DenyFilter                      \*.*/

# Port 21 is the standard FTP port.
Port                            21


MaxInstances                    30

# Set the user and group that the server normally runs at.
User    nobody
Group   nogroup
DefaultRoot ~ ftpusers
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask                           022  022
# Normally, we want files to be overwriteable.
AllowOverwrite          off

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
# PersistentPasswd              off

# Be warned: use of this directive impacts CPU average load!
#
# Uncomment this if you like to see progress and transfer rate with ftpwho
# in downloads. That is not needed for uploads rates.
# UseSendFile                   off

TransferLog /var/log/proftpd/xferlog
SystemLog   /var/log/proftpd/proftpd.log

<IfModule mod_tls.c>
TLSEngine off
</IfModule>

<IfModule mod_delay.c>
DelayEngine on
</IfModule>

<IfModule mod_ctrls.c>
ControlsEngine        on
ControlsMaxClients    2
ControlsLog           /var/log/proftpd/controls.log
ControlsInterval      5
ControlsSocket        /var/run/proftpd/proftpd.sock
</IfModule>

<IfModule mod_ctrls_admin.c>
AdminControlsEngine on
</IfModule>




# A basic anonymous configuration, no upload directories.

  <Anonymous /home/ftp>
   User                         ftp
   Group                                nogroup
#   # We want clients to be able to login with "anonymous" as well as "ftp"
   UserAlias                    anonymous ftp
#   # Cosmetic changes, all files belongs to ftp user
   DirFakeUser  on ftp
   DirFakeGroup on ftp
#
   RequireValidShell            off
#
#   # 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

#
</Anonymous>
<Anonymous /home/ftp/pub>
User          userftp
Group         ftpusers
   DirFakeUser  on ftp
   Umask    022      022
   DirFakeGroup on ftp
   RequireValidShell            off
   MaxClients                   10
   DisplayLogin                 .welcome.msg
   DisplayFirstChdir            .message
<Directory /home/ftp/pub>
<Limit RMD RNFR DELE RETR>
DenyUser userftp
</Limit>
<Limit WRITE>
AllowAll
</Limit>
<Limit DELE RMD XRMD>
DenyAll
</Limit>
</Directory>
</Anonymous>
为什么?
 楼主| 发表于 2006-11-12 13:11:06 | 显示全部楼层
原来是ftp目录的权限问题,即ftp用户是没问题的,但是却进不了目录,那么服务器也会拒绝ftp用户,改了权限后解决,这是个很普遍的问题,但是由于对权限理解不够,实际操作中还是会疏忽。
回复 支持 反对

使用道具 举报

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

本版积分规则

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