|
|

楼主 |
发表于 2005-12-28 08:46:04
|
显示全部楼层
精华中的帖子我都看了,有点没搞懂!下面是我的配置. 现在我用 我的服务器用户登陆进入可以浏览所有文件,但是就是不能上传任何目录中. 我需要的是要有个FTP,能够在它指定的目录下有管理员的权限,它之外的目录不能进行任何操作!!
chmod 777 /home/ftpd/incoming
chown ftp /home/ftpd/incoming
chgrp ftp /home/ftpd/incoming
改etc下的ftpaccess,我的是这样:
loginfails 2
class local real,guest,anonymous *.domain 0.0.0.0
class remote real,guest,anonymous *
limit local 20 Any /etc/msgs/msg.toomany
limit remote 100 SaSu|Any1800-0600 /etc/msgs/msg.toomany
limit remote 60 Any /etc/msgs/msg.toomany
readme README* login
readme README* cwd=*
message /welcome.msg login
message .message cwd=*
compress yes local remote
tar yes local remote
# allow use of private file for SITE GROUP and SITE GPASS?
private yes
# passwd-check <none|trivial|rfc822> [<enforce|warn>]
passwd-check rfc822 warn
log commands real
log transfers anonymous,real inbound,outbound
shutdown /etc/shutmsg
# all the following default to "yes" for everybody
delete no guest,anonymous # delete permission?
overwrite no guest,anonymous # overwrite permission?
rename no guest,anonymous # rename permission?
chmod no anonymous # chmod permission?
umask no anonymous # umask permission?
# specify the upload directory information
upload /home/ftp /pub no
upload /home/ftp /incoming yes
upload /home/ftp /pub/incoming yes
upload /home/ftp /bin no
upload /home/ftp /etc no
# directory aliases... [note, the ":" is not required]
alias inc: /incoming
# cdpath
cdpath /incoming
cdpath /pub
cdpath /
# path-filter...
path-filter anonymous /etc/pathmsg ^[-A-Za-z0-9_.]*$ ^. ^-
path-filter guest /etc/pathmsg ^[-A-Za-z0-9_.]*$ ^. ^-
# specify which group of users will be treated as "guests".
guestgroup ftponly
email user@hostname |
|