The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FTP Permissions / HTAccess?

Discussion in 'General Discussion' started by Lezarwerks, Sep 28, 2009.

  1. Lezarwerks

    Lezarwerks Member

    Joined:
    Oct 15, 2006
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Hello!

    I have a public FTP (not anonymous) on my site, and I'm running it as a hosting service for a specific genre of files. Is there any way I can restrict certain filetypes to be uploaded by its users? Is there a way to prevent execution of any kind of script within the directory the FTP account is set?

    ~/public_html/hosted is the location the FTP account is set to.

    Thanks!

    Sincerely,
    Joshua Szanto

    EDIT: Also, does there happen to be some way to monitor the activities of this specific account (ie. what files are uploaded, renamed, deleted, etc by which IP address)?
     
  2. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    If you're using pure-ftp, you could run a pure-ftp upload script which disallowed unknown file extensions.

    Yes, check out .htaccess and Options.
    Yes, check out the ftp log file. Actually the log left in /var/log/messages is more detailed and easier to understand, but you'll have to use grep to select just the ftp log lines as it contains a whole world of other logging.
     
Loading...

Share This Page