QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 710|回复: 13

我的proftp运行后不能登入,请教!!!!!!

[复制链接]
发表于 2004-4-9 15:18:10 | 显示全部楼层 |阅读模式
各位大侠,我刚装上proftpd,再standalone模式下运行,但本机不能以anonymous登入,不知道为什么.
我得proftpd.conf文件如下:
ServerName "ProFTPD Default installation"
ServerType standalone
DefaultServer on

Port 21
Umask 022
MaxInstances 30

User nobody
Group nobody

# Normally, we want files to be overwriteable.

AllowOverwrite on


# A basic anonymous configuration, no upload directories.

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

DenyAll
发表于 2004-4-9 22:05:12 | 显示全部楼层
谁知道阿
你说说过程
你是怎么安装的?
安装的那个版本阿?
怎么是这个
proftpd.conf文件阿
<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                        6 "Sorry, max %m users -- try again later"
#
#Alias " /mnt"   " /var/ftp"
#  # 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
IgnoreHidden on
</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>
<Directory />
HideFiles (Recycled|found.000|MSOCache|welcome.msg|《夏》|Syst%20Volume%20Information)$
</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>
是不是缺少这个<Anonymous>.....
回复

使用道具 举报

 楼主| 发表于 2004-4-10 22:08:08 | 显示全部楼层
我下的是1.25版本,然后 install_user=root install_group=wheel ./config,  make,   make install
三步完成的,然后在/usr/local/etc/proftpd/proftpd.conf把 group 的 nogroup 改成 nobody之后运行,则不能登入.

完整的conf文件如下,请帮我看看了,谢谢!!
ServerName                        "ProFTPD 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 that the server normally runs at.
User                                nobody
Group                                nobody

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

# A basic anonymous configuration, no upload directories.
<Anonymous ~ftp>
  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                        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
  <Limit WRITE>
    DenyAll
  </Limit>

</Anonymous>
回复

使用道具 举报

发表于 2004-4-10 23:45:13 | 显示全部楼层
ftp用户的主目录的权限
检查一下
回复

使用道具 举报

 楼主| 发表于 2004-4-13 13:48:14 | 显示全部楼层
哪里有那个主目录的权限阿
回复

使用道具 举报

发表于 2004-4-13 19:39:56 | 显示全部楼层
匿名登陆用户就是ftp这个用户

所以匿名登陆的目录就是ftp这个用户的宿主目录

一般proftp默认ftp用户的目录是/var/ftp
# A basic anonymous configuration, no upload directories.
<Anonymous ~ftp>
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
回复

使用道具 举报

 楼主| 发表于 2004-4-13 22:38:05 | 显示全部楼层
噢,是这样的啊,但我后来又重装了一次,发现在./configure时就出险问题:
checking whether the C compiler works... yes
checking whether we are cross compiling... no
....
checking for standalone crypt... no
checking for crypt in -lcrypt... yes
....
checking for _pw_stayopen variable... no
checking for set_auth_parameters in -lsecurity... no
checking how to run the C preprocessor... gcc -E
checking for sys/security.h... no
checking for krb.h... no
checking for prot.h... no
checking for set_auth_parameters... no
checking for getprpwent... no
checking for hpsecurity.h... no
checking for hpsecurity.h workaround... no
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
等,请问这样会不会影响编译的结果啊.
我装的gcc是2.96版本的,我的linux是redhat linux 3.2.2-5
请问这是为什么?
回复

使用道具 举报

发表于 2004-4-14 18:31:57 | 显示全部楼层
能编译过去吗?
回复

使用道具 举报

 楼主| 发表于 2004-4-15 12:21:36 | 显示全部楼层
能编译过阿,之后make,和make install 都没有问题!
担心./configure会影响后来的
回复

使用道具 举报

发表于 2004-4-15 16:39:11 | 显示全部楼层
我怎么没发现你./configure有问题?
回复

使用道具 举报

 楼主| 发表于 2004-4-16 19:36:18 | 显示全部楼层
checking …… no
不是代表没有查到相应文件吗???
回复

使用道具 举报

发表于 2004-4-16 20:47:48 | 显示全部楼层
一定要yes才行吗?
不见得吧
回复

使用道具 举报

 楼主| 发表于 2004-4-17 00:21:35 | 显示全部楼层
这样子啊
那我再去弄弄,一定要搞定它
flashor,你能不能留下你的email啊
这样向你请教更方便了
回复

使用道具 举报

发表于 2004-4-17 17:42:48 | 显示全部楼层
[quote:00d5990663="yanhua200n"]这样子啊
那我再去弄弄,一定要搞定它
flashor,你能不能留下你的email啊
这样向你请教更方便了[/quote]

站内短信
或者[email protected]
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-8 20:59 , Processed in 0.088427 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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