Quote:
Originally posted by bathory
Mind that AllowFilter and DenyFilter are used to block ftp commands. (I think that % is for escaping ftp commands, but I'm not sure). You must use the PathAllowFilter and PathDenyFilter directives to do what you want. Something like this
Code:
PathDenyFilter \.(php|cgi|htm)$
I haven't use .ftpaccess but I guess you can use those directives inside .ftpaccesss. Just try and see if it works.
Regards
|
O..really thank you~
another problem ,
type some command in .ftpacces seem can control user's permission
now i do useradd -d /home/group1/abc,the directroy will create in /home/group1/abc
and do uaseadd -d /home/group2/abc ,directroy will create in /home/group2/abc
bu i only want group1 jsut can uplaod which file type ".rar"
group2 only can upload ".htm"
how can i do it?
but i don't want modify in each user ?i wanna when i create some user to group1 will automatic only can uplaod ".rar"
create user in group2 only can upload " .htm" automatic
--------
<Directory /hoem/group1/*>
AllowFilter ".rar"
</Directory>
<Directory /hoem/group2/*>
AllowFilter ".htm"
</Directory>
is it work?
and then i don't want to modify proftpd.conf
i just wanna modify .ftpaccess,how can i do it? thx all~