Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    2

    Default cPanel/WHM FTP upload filesize limit

    Hello, I have been looking for a way to limit the filesize for ftp uploads so as to restrict my users from uploading files larger than 50 MB.

    Does anyone know if there is a built-in option or another way to do this ?

    I have searched the forum and used google to find the answer to this question and haven't been able to find an answer, most information I found refers to File Manager restrictions not FTP uploads.

    Thanks,
    Stefan

  2. #2
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    You can throw the -n flag at startup to set limits for all logins or use the limits.conf config to set limits for each individual account in pure-ftpd.

    There are ways around both of those though so I usually like to enable the upload script function and have it call a script to double check items.

  3. #3
    Registered User
    Join Date
    Mar 2010
    Posts
    2

    Default

    I have found that for ProFTPd one can set this option in it's configuration:

    18. How can I limit the size of uploaded files?

    As of 1.2.7rc1 there are two new directives MaxRetrieveFileSize and MaxStoreFileSize to control the maximum size of files being transfered to or from the server.

    This was taken from: Configuration problems

    Please point me to the file I need to modify/add this option.

    Thank you
    Stefan

  4. #4
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,032

    Default

    You can add these directives to the ProFTPd configuration by logging into the shell as root, using an editor like vi or nano to edit /etc/proftpd.conf, and adding the directives with their desired values. Save the changes to the file, and restart the proftpd service:

    Code:
    # /scripts/restartsrv_proftpd
    The directives you mentioned are not listed in the /etc/proftpd.conf file by default, so you will need to add them.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

Similar Threads & Tags
Similar threads

  1. Limit FTP Download and Upload Speed
    By kshazad in forum Security
    Replies: 1
    Last Post: 01-23-2011, 06:59 AM
  2. Pure-ftp upload limit?
    By sparek-3 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-02-2008, 01:23 PM
  3. 2GB filesize limit. How to overcome?
    By Roy@ENHOST in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-20-2005, 07:17 AM
  4. TAR + filesize limit?
    By wa4fat in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 04-01-2005, 06:56 PM
  5. FTP max upload limit
    By kiwiguys in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-17-2004, 12:06 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube