|
我使用的是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=upftp
delete no anonymous,guest,class=anonftp,class=downftp,class=upftp
overwrite no anonymous,guest,class=anonftp,class=downftp,class=upftp
rename no anonymous,guest,class=anonftp,class=downftp,class=upftp
umask no anonymous,guest,class=anonftp,class=downftp,class=upftp
passwd-check rfc822 warn
log transfers guest,real inbound
log transfers guest,real outbound
limit-time anonymous 5
limit-upload anonymous 1
limit-download anonymous 1
mailfrom Upload Notice
incmail root
throughput /home/ftp * * 300000 0.5 *
greeting brief
------------
请指出我的错误之处
如何只允许上传用户在incoming下建立一级目录?
以上问题困绕小弟多时,哪位能救我于水深火热
小弟不甚感激,谢了先! |
|