Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-08-2005, 09:32 AM   #1
Registered: Aug 2004
Location: Maine
Distribution: Gentoo Linux
Posts: 239

Rep: Reputation: 30
vsftpd disallow specific file types from being uploaded

Is there a way in the config for vsftpd to disallow specific file types from being uploaded through ftp.
Would there be a way to disallow the uploading of .mp3 files?
Becouse if there is not a way...I have no control over what my users are alowed to upload.

EDIT: I know it works with proftpd with PathDenyFilter "(.*\.mp3)|(.*\.mpg)$"
do you know how I could do the same with vsftpd??


Last edited by GUIPenguin; 04-08-2005 at 09:50 AM.
Old 04-08-2005, 09:56 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 253Reputation: 253Reputation: 253
According to the vsftpd.conf man page, this is probably what your looking for:

    This option can be used to set a pattern for filenames (and directory names etc.) which should not be 
accessible in any way. The affected items are not hidden, but any attempt to do anything to them 
(download, change into directory, affect something within directory etc.) will be denied. This option is very 
simple, and should not be used for serious access control - the filesystem's permissions should be used in 
preference. However, this option may be useful in certain virtual user setups. In particular aware that if a 
filename is accessible by a variety of names (perhaps due to symbolic links or hard links), then care must 
be taken to deny access to all the names. Access will be denied to items if their name contains the string 
given by hide_file, or if they match the regular expression specified by hide_file. Note that vsftpd's regular 
expression matching code is a simple implementation which is a subset of full regular expression 
functionality. Because of this, you will need to carefully and exhaustively test any application of this 
option. And you are recommended to use filesystem permissions for any important security policies due to 
their greater reliability. Example: deny_file={*.mp3,*.mov,.private}

    Default: (none)

Last edited by trickykid; 04-08-2005 at 09:57 AM.
Old 04-08-2005, 10:04 AM   #3
Registered: Aug 2004
Location: Maine
Distribution: Gentoo Linux
Posts: 239

Original Poster
Rep: Reputation: 30
Thanks alot Trickykid!!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
users of VSFTPD can't chmod files they uploaded tclwp Linux - Networking 4 09-05-2008 07:28 AM
vsftpd uploaded files owned by group? fredriksk Linux - Software 1 10-17-2005 08:48 AM
Re: Vsftpd uploaded files Permissions silver05 Linux - Software 2 09-30-2005 08:22 AM
Allow Disallow Specific ports anybody1234 Linux - General 2 04-05-2005 02:21 PM
uploaded file on vsftpd has wrong file attributes Linux - Newbie 2 03-06-2004 09:23 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:45 PM.

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