Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Oct 2006
    Posts
    11

    Default FTP Permissions / HTAccess?

    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. #2
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,117
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Lezarwerks View Post
    Is there any way I can restrict certain filetypes to be uploaded by its users?
    If you're using pure-ftp, you could run a pure-ftp upload script which disallowed unknown file extensions.

    Is there a way to prevent execution of any kind of script within the directory the FTP account is set?
    Yes, check out .htaccess and Options.
    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)?
    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.

Similar Threads & Tags
Similar threads

  1. .htaccess file permissions
    By dave_or_did in forum New User Questions
    Replies: 0
    Last Post: 10-08-2010, 10:04 AM
  2. htaccess file is hidden in client ftp's
    By sinanata in forum New User Questions
    Replies: 3
    Last Post: 09-27-2006, 04:22 AM
  3. FTP Permissions?
    By Pineriver in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-09-2005, 01:15 PM
  4. FTP Permissions
    By tswaibel in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 03-05-2004, 01:27 PM
  5. FTP Permissions
    By B12Org in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 08-27-2003, 04:32 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube