LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-13-2005, 01:00 AM   #1
singying304
Member
 
Registered: Feb 2005
Posts: 106

Rep: Reputation: 15
does anyone know how to limit file type about proftpd!


now,i wanna limit some user cannot upload *.htm *.php *.cgi

how can i do it?

Last edited by singying304; 07-14-2005 at 06:35 AM.
 
Old 07-13-2005, 04:29 AM   #2
singying304
Member
 
Registered: Feb 2005
Posts: 106

Original Poster
Rep: Reputation: 15
thank you~
 
Old 07-13-2005, 08:24 PM   #3
singying304
Member
 
Registered: Feb 2005
Posts: 106

Original Poster
Rep: Reputation: 15
help me please~
 
Old 07-14-2005, 04:11 AM   #4
singying304
Member
 
Registered: Feb 2005
Posts: 106

Original Poster
Rep: Reputation: 15
anyone help~?
 
Old 07-14-2005, 04:53 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
This will help you.
 
Old 07-14-2005, 06:35 AM   #6
singying304
Member
 
Registered: Feb 2005
Posts: 106

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by bathory
This will help you.
really thank you!

Last edited by singying304; 07-14-2005 at 06:52 AM.
 
Old 07-14-2005, 06:42 AM   #7
singying304
Member
 
Registered: Feb 2005
Posts: 106

Original Poster
Rep: Reputation: 15
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~
 
Old 07-14-2005, 07:00 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
Old 07-14-2005, 07:13 AM   #9
singying304
Member
 
Registered: Feb 2005
Posts: 106

Original Poster
Rep: Reputation: 15
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~
 
Old 07-14-2005, 07:34 AM   #10
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
As I told you, why don't you try to put the directives inside .ftpaccess and see if they work!
Create a .ftpaccess inside /home/group1 with something like this:
Code:
<Directory /home/group1/*>
PathAllowFilter \.rar$
</Directory>
Create another .ftpaccess inside /home/group2 with something like this:
Code:
<Directory /home/group2/*>
PathAllowFilter \.htm$
</Directory>
 
Old 07-14-2005, 07:42 AM   #11
singying304
Member
 
Registered: Feb 2005
Posts: 106

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by bathory
As I told you, why don't you try to put the directives inside .ftpaccess and see if they work!
Create a .ftpaccess inside /home/group1 with something like this:
Code:
<Directory /home/group1/*>
PathAllowFilter \.rar$
</Directory>
Create another .ftpaccess inside /home/group2 with something like this:
Code:
<Directory /home/group2/*>
PathAllowFilter \.htm$
</Directory>
this way also ok~

thank you !!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I limit bandwidth to my PROFTPD clients overproof Linux - Newbie 3 04-17-2005 11:34 AM
proftpd (Router port change and limit login rule) icehenge Slackware 2 03-07-2005 03:23 PM
Proftpd commands and procedures to limit Radicalm16 Linux - Software 1 12-24-2003 08:34 PM
open file, file of type selections rkfb Linux - Newbie 2 11-19-2003 05:32 AM
proftpd - limit user browsing to there dir only bkeating Linux - Software 1 12-05-2002 02:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration