Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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:
    168
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice