LinuxSir.cn,穿越时空的Linuxsir!

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

proFTP架好了,也配置好了,但使用匿名登陆却无法登陆到指定的目录?请教

[复制链接]
发表于 2005-5-17 17:57:08 | 显示全部楼层 |阅读模式
架好了FTP,并且修改好了proftp.conf的配置,希望用匿名登陆到指定的目录,而不是默认的pub目录~.但是~。。却不成功。我的配置跟人家的一摸一样~~但是只能看到pub目录~却看不到指定的目录~权限也设置好了~就是不行~请高手指教~谢谢
发表于 2005-5-17 19:41:50 | 显示全部楼层
贴你的配置文件
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-18 09:25:19 | 显示全部楼层
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName                      "roFTPD Default Installation"
ServerType                      standalone
DefaultServer                   on
ServerIdent                on

# 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

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

#TimeoutSession
TimeoutIdle           14

#Disable DNS reverse lookup
UseReverseDNS         off
IdentLookups          off

# Set the user and group under which the server will run.
User                           nobody
Group                          nobody

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

# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite          on
AllowRetrieveRestart    on
AllowStoreRestart       on
</Directory>


# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
  DenyAll
</Limit>

# A basic anonymous configuration, no upload directories.  If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous /ftproot1/>
  User                          ftp
  Group                         ftp

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

  # 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 NLST STAT WRITE>
   DenyAll
  </Limit>
<Limit LIST>
AllowAll
</Limit>
</Anonymous>
<Anonymous /ftproot1/>
User upload
Group upload
MaxClients  900
<Limit WRITE>
AllowAll
</Limit>
</Anonymous>



在这之前已经创建了一个ftproot1的目录~属主是upload,并且设置了权限。高手帮我看看~有什么问题~谢谢
回复 支持 反对

使用道具 举报

发表于 2005-5-18 10:46:52 | 显示全部楼层
匿名不能登陆到/ftproot1/????
回复 支持 反对

使用道具 举报

发表于 2005-5-18 10:49:16 | 显示全部楼层
/etc/passwd文件中ftp用户的home目录设的哪里?
注意检查一下...
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-18 11:57:11 | 显示全部楼层
哦??还没考虑过这个~楼上的大哥~多谢提醒~我去看看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-18 14:39:29 | 显示全部楼层
多谢楼上的大哥~问题解决了~:)谢谢你
回复 支持 反对

使用道具 举报

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

本版积分规则

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