LinuxSir.cn,穿越时空的Linuxsir!

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

请教一个关于wu-ftpd的问题!!

[复制链接]
发表于 2004-4-28 19:09:22 | 显示全部楼层 |阅读模式
用wu-ftpd架设了ftp服务器,但用匿名登陆的话却无法看到用户根目录的文件和目录,为什么呢??
用注册帐号的却没问题。。。。
 楼主| 发表于 2004-4-28 21:36:59 | 显示全部楼层
没有人回答我吗??急用啊,请帮帮忙!!
 楼主| 发表于 2004-4-29 00:14:47 | 显示全部楼层
自己搞定了,原来我没有把ls文件复制到ftp根目录的bin下.顺便再问一个问题:怎样可以把本地硬盘的其它目录映射到ftp的根目录下呢??
发表于 2004-4-29 12:36:20 | 显示全部楼层
最初由 shyxie 发表
自己搞定了,原来我没有把ls文件复制到ftp根目录的bin下.顺便再问一个问题:怎样可以把本地硬盘的其它目录映射到ftp的根目录下呢??

ln -sf /your/dir /home/ftp

把所有的配置文件贴出来看看,这样大家才可以帮你分析。
 楼主| 发表于 2004-4-29 14:12:29 | 显示全部楼层
/etc/ftpaccess内容如下:
======================================================
#
# Copyright (c) 1999,2000,2001 WU-FTPD Development Group.  
# All rights reserved.
#
# Portions Copyright (c) 1980, 1985, 1988, 1989, 1990, 1991, 1993, 1994
#   The Regents of the University of California.
# Portions Copyright (c) 1993, 1994 Washington University in Saint Louis.
# Portions Copyright (c) 1996, 1998 Berkeley Software Design, Inc.
# Portions Copyright (c) 1989 Massachusetts Institute of Technology.
# Portions Copyright (c) 1998 Sendmail, Inc.
# Portions Copyright (c) 1983, 1995, 1996, 1997 Eric P.  Allman.
# Portions Copyright (c) 1997 by Stan Barber.
# Portions Copyright (c) 1997 by Kent Landfield.
# Portions Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997
#   Free Software Foundation, Inc.  
#
# Use and distribution of this software and its source code are governed
# by the terms and conditions of the WU-FTPD Software License ("LICENSE").
#
# If you did not receive a copy of the license, it may be obtained online
# at http://www.wu-ftpd.org/license.html.
#
# $Id: ftpaccess,v 1.2 2001/03/13 11:52:12 wuftpd Exp $
#
class   all   real,guest,anonymous  *

limit   all   10   Any              /etc/msgs/msg.dead

readme  README*    login
readme  README*    cwd=*

upload /var/ftp /incoming yes root root 0666 dirs

message /etc/welcome.msg                login
message .message                         cwd=*

log commands real
log transfers anonymous,real inbound,outbound
greeting text xsy's FTP Server ready..

shutdown /etc/shutmsg

email shyxie@163.com

=====================================================
/etc/xinetd.d/wu-ftpd内容如下:
=====================================================
service ftp
{
disable                =no
socket_type        =stream
wait                =no
user                =root
server                =/usr/sbin/in.ftpd
server_args        =-l -a
log_on_success        +=DURATION USERID
log_on_failure        +=USERID
nice                =10
}
=====================================================

基本上最主要是这两个文件的设置,大家看看有什么不妥...
发表于 2004-4-29 15:05:40 | 显示全部楼层
那些指向目标目录的软链接的权限设置好了嘛?
还有,你的ftpaccess好像没有配置好。

wu-ftpd教程(内有权限设置的问题)
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=8455

ps:请习惯地去查阅man手册,如果是源码安装,还应该查看源码目录下的文档。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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