How to disable certain types of file upload in Serv-U

Source: Internet
Author: User

1. Prohibit upload of certain types of files

Add an access rule to the user's "Directory Access", set the path to *. exe, cancel all permissions, and put the rule at the top.

Path = *. exe
Access = ---

After this processing, the user cannot upload files in his/her own directory *. *. the exe file is not listed, and the uploaded file suffix cannot be changed to exe. The test is normal in Serv-U 6.

2. only certain types of files can be uploaded.

1. Add an access rule to your "Directory Access", set the path to *. html, set the read, write, append, and delete permissions, and put them in the first one.
2. Cancel the write, append, and delete permissions on the file directory.

After this processing, you can only upload *. html files.

Handsome author Ling Yun

You must cancel the File Execution permission and reduce the running permission of serv_u to prevent elevation of permission.
If you use ftp to download software, you only need to grant the read + permission. Do not select any other software.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.