Find the answer to your Linux question:
Results 1 to 3 of 3
Hi there . I´m facing a problem with a linux/ftp account. I´ve installed vsftpd and created one user without shell access to access a directory on my server. But ideally, ...
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Posts
    4

    Restrict directory content to only one filetype

    Hi there .

    I´m facing a problem with a linux/ftp account. I´ve installed vsftpd and created one user without shell access to access a directory on my server.

    But ideally, I want to restrict the content upload to that directory to only one type of content (videos, pdfs, docs...).

    Is that possible? Thanks in advance, Simon.

  2. #2
    Just Joined!
    Join Date
    Oct 2007
    Posts
    37
    I don't think you can do that with FTP, unless you have a FTP scanning tool (like Clam) that can filter out and prevent the uploading of certain files (that's some coding on your part).

    You can also filter content upload through php/perl/etc.

    Or you can have a cron run every minute that remove certain files from that directory based on file type.

  3. #3
    Just Joined!
    Join Date
    Oct 2007
    Posts
    4
    Quote Originally Posted by papetova View Post
    I don't think you can do that with FTP, unless you have a FTP scanning tool (like Clam) that can filter out and prevent the uploading of certain files (that's some coding on your part).

    You can also filter content upload through php/perl/etc.

    Or you can have a cron run every minute that remove certain files from that directory based on file type.
    Ty papetova,

    I will go with the cron option, I think.

    Cheers, Simon.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...