LinuxSir.cn,穿越时空的Linuxsir!

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

怎么样配置proftpd.conf???急!

[复制链接]
发表于 2005-9-7 14:07:23 | 显示全部楼层 |阅读模式
我的想法是:
不匿名登陆,用户linuxer,有密码linuxer。

访问/home/linuxer
incoming允许上传,允许下载
pub只许下载



# 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

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

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

# 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
</Directory>


# A basic anonymous configuration, no upload directories.  If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous /home/linuxer>
  User                                linuxer
  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                        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
  <Directory incoming>
    <Limit MKD RETR STOR READ DIRS></Limit>
  </Directory>
  <Directory pub>
    <Limit RETR></Limit>
  </Directory>
</Anonymous>

AllowRetrieveRestart on
AllowStoreRestart on

帮我看看,谢谢了!!急啊。。。
 楼主| 发表于 2005-9-8 12:31:09 | 显示全部楼层
大家帮帮忙啊。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-9 19:57:25 | 显示全部楼层
找了半天,按照人家说的去做,还是登陆不上!
显示
匿名时候: send your complete email address as your password.
不匿名时候,也是密码不正确的意思!

但是密码应该是对的啊!
哪儿设置的不对吗?
帮帮忙吧。
回复 支持 反对

使用道具 举报

发表于 2005-9-9 22:51:37 | 显示全部楼层
匿名的时候,要把完整的email打上去,至少要一个 @。

不匿名的时候,就不知道了,你看看日志吧。
回复 支持 反对

使用道具 举报

发表于 2005-9-10 11:53:20 | 显示全部楼层
把 Anonymous 段全部删除
再设置一下权限
Group   nobody
看置顶的帖子,里边有些用法,另外推荐一个学习笔记
http://www.5ilinux.com/blog/archives/000082.html
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-12 13:30:37 | 显示全部楼层
QUIT
连接尝试失败.            
连接到        202.118.82.54, 端口 21 (#10)
已连接.  正等待响应.            
220 ProFTPD 1.2.9 Server (ProFTPD Default Installation) [youth.dlmu.edu.cn]
USER linuxer
331 Password required for linuxer.
PASS xxxxxx
530 Login incorrect.
QUIT
连接尝试失败



这是不匿名的时候!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-12 14:00:04 | 显示全部楼层
Post by younglinux
把 Anonymous 段全部删除
再设置一下权限
Group   nobody
看置顶的帖子,里边有些用法,另外推荐一个学习笔记
http://www.5ilinux.com/blog/archives/000082.html


首先谢谢!
这篇文章我有看过,但是在装完后他就说一般能登陆,可我的就不能登陆!
回复 支持 反对

使用道具 举报

发表于 2005-9-13 10:59:17 | 显示全部楼层
打开proftpd的调试功能:
debian下编辑/etc/default/proftpd文件,修改其中option行,加入"-d 3",重启proftpd。

使用匿名登录之后,查看/var/log/syslog文件,会发现出错原因的。
回复 支持 反对

使用道具 举报

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

本版积分规则

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