LinuxSir.cn,穿越时空的Linuxsir!

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

关于wu-ftp配置的问题

[复制链接]
发表于 2003-4-23 14:21:51 | 显示全部楼层 |阅读模式
为什么我在/home/下建立了一个用户,登入ftp时,是进入/home/用户的文件夹里,但是可以更改路径,可以登到根目录下,浏览所有电脑文件.请问是这什么原因.
我的ftpaccess文件配置如下:
# This file controls the behavior of the wu-ftpd
# ftp server.
#
# If you're looking for a graphical frontend to
# editing it, try kwuftpd from the kdeadmin
# package.

# Don't allow system accounts to log in over ftp
deny-uid %-99 %65534-
deny-gid %-99 %65534-
allow-uid ftp
allow-gid ftp

# The ftpchroot group doesn't exist by default, this
# entry is just supplied as an example.
# To chroot a user, modify the line below or create
# the ftpchroot group and add the user to it.
#
# You will need to setup the required applications
# and libraries in the root directory (set using
guest-root /apps/www/htdocs
# Look at the anonftp package for the files you'll need.
guestgroup ftpchroot

# User classes...
class   all   real,guest,  *

# Set this to your email address
email root@localhost

# Allow 5 mistyped passwords
loginfails 5

# Notify the users of README files at login and when
# changing to a different directory
readme  README*    login
readme  README*    cwd=*

# Messages displayed to the user
message /welcome.msg            login
message .message                cwd=*

# Allow on-the-fly compression and tarring
compress        yes             all
tar             yes             all

# Prevent anonymous users (and partially guest users)
# from executing dangerous commands
chmod           no              guest,anonymous
delete          no              anonymous
overwrite       no              anonymous
rename          no              anonymous

# Turn on logging to /var/log/xferlog
log transfers anonymous,guest,real inbound,outbound

# If /etc/shutmsg exists, don't allow logins
# see ftpshut man page
shutdown /etc/shutmsg

# Ask users to use their email address as anonymous
# password
passwd-check rfc822 warn
发表于 2004-7-9 10:21:12 | 显示全部楼层
我的ftpaccess里面有这一句:restricted-uid lamer
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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