QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 687|回复: 2

wu-ftpd的登入问题

[复制链接]
发表于 2002-12-28 13:32:13 | 显示全部楼层 |阅读模式
在mdk8.1上安装了wu-ftpd-2.6.1-16,用普通用户登陆正常,打上ip,用户名,密码.顺利登入可以限定在用户目录下,
但有一个很奇怪的问题,同样用普通用户登陆,但初时只打上ip,不打上用户名和密码,选匿名登陆,它会弹出一窗囗,在窗囗上打上用户名,再打上密码,就会顺利登入,这本来也没问题,但用这方法登入后,居然可以登入其它目录,但我己经在ftpaccess加上了restricted-uid *,应是限定了用户目录了,究竟问题出在那里?请各位大哥帮忙指正,多谢!
以下是我的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).
#
# Look at the anonftp package for the files you'll need.
guestgroup ftpchroot

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

# 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                yes                guest,anonymous
delete                        no             real,guest,anonymous
overwrite         yes                real,guest,anonymous
rename                no                real,guest,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 rfc82 warn
restricted-uid *
发表于 2002-12-28 14:23:58 | 显示全部楼层
将普通用户也设置为ftp组(修改帐号属性,将组别设置为ftp),默认普通用户身份不受 restricted-uid影响
相应ftpaccess改成:
# User classes...
class   all   real,guest,anonymous  *
guestgroup ftp(这样所有的ftp组用户都归为guest群)
回复

使用道具 举报

 楼主| 发表于 2002-12-28 18:51:44 | 显示全部楼层
[quote:d0e6e917a7="llc"]将普通用户也设置为ftp组(修改帐号属性,将组别设置为ftp),默认普通用户身份不受 restricted-uid影响
相应ftpaccess改成:
# User classes...
class   all   real,guest,anonymous  *
guestgroup ftp(这样所有的ftp组用户都归为guest群)[/quote]
己修改了ftpaccess,加上了guestgroup ftp ,该请问如何修改帐号属性将组别设为ftp?

我的问题还是这样:
1:同一帐号用不同的登入方式,就出现不同的结果,
2:一次过输入帐号和密码登入,就一切正常,可以限定在目录下.
3:但不输入帐号和密码,选匿名登入,等弹出窗囗要求输入帐号和密码时再输入密 码和帐号,就会出现不能限定在目录下,
4:同样不输入帐号和密码,选一般登入等弹出窗囗要求输入帐号和密码时,再输入帐号和密码也正常,可以限定在目录下.
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-17 14:26 , Processed in 0.054878 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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