由 lbohr 在 12-05-2002 15:38 发表:
帮忙看看: 关于wu-ftpd
我使用的是rh7.3,wu-ftpd 2.6.2
要实现:
anonymous: 只能list,不能上传下载
download: 只能下载(pub and incoming)
upload: 只能上传(incoming)
ftpadmin: 可以上传下载删除覆盖重命名
----------
用户结构如下(etc/passwd,etc/group):
user group
download --- ftpdown
upload --- ftpup
ftpadmin --- ftpadmin
----------
owner group
home/ftp ftpadmin ftpadmin 0777
home/ftp/incoming ftpadmin ftpadmin 0777
home/ftp/pub root ftp 0775
-----------
???问题:
anonymous 可以下载,不能上传
download 和 upload 都能上传下载
ftpadmin 正常工作
-----------------
附:etc/ftpaccess
autogroup ftpdown downftp
autogroup ftpup upftp
autogroup ftpadmin adminftp
class anonftp anonymous 192.168..
class downftp guest 192.168..
class upftp guest 192.168..
class adminftp real 192.168.0.*
limit anonftp 2 Any /home/ftp/toomany.msg
limit downftp 4 Any /home/ftp/toomany.msg
limit adminftp 1 Any /home/ftp/toomany.msg
host-limit anonftp 1 Any /home/ftp/welcome.msg
host-limit downftp 2 Any /home/ftp/welcome.msg
host-limit adminftp 1 Any /home/ftp/welcome.msg
guestgroup ftpdown ftpup
guestuser download upload
realgroup ftp
realuser ftpadmin
anonymous-root /home/ftp
guest-root /home/ftp
#upload /home/ftp * no
upload /home/ftp /bin no
upload /home/ftp /etc no
upload /home/ftp /dev no
upload /home/ftp /lib no
upload relative class=anonftp - /home/ftp /incoming no
upload relative class=downftp - /home/ftp /incoming no
upload relative class=upftp - /home/ftp /incoming yes ftpadmin ftpadmin 0777 dirs 3773
upload relative class=adminftp - /home/ftp /incoming yes ftpadmin ftpadmin 0777 dirs 3773
#upload relative class=anonftp - /home/ftp /incoming/* yes ftpadmin ftpadmin 0440 nodirs
noretrieve .notar
noretrieve /home/ftp/bin
noretrieve /home/ftp/etc
noretrieve /home/ftp/dev
noretrieve /home/ftp/lib
loginfails 5
private no
banner /home/ftp/welcome.msg
hostname xxx
email [email protected]
chmod no anonymous,guest,class=anonftp,class=downftp,class=upf