Restricting file types using Serv-u

Source: Internet
Author: User

Use Serv-u restricting file Types

U Case Requirements

How do I use serv-u to limit the types of files that users upload?

U Knowledge Tips

The use of serv-u can not only restrict the user's read, write, delete and other permissions, but also according to the file type restrictions.

Case: Restrict users to upload only. gif,. jpg, and. bmp types files.

The specific implementation steps are described below.

(1) Create a new user Benet in Serv-u, navigate to the Directory Access tab, click the Add button, and in the Directory Access Rules window, set the user's access rights to the. gif type file. Enter "*.gif" in the "Path" field, and the permissions are set to read, write, and then click the "Save" button, shown in 5.1.

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image002 "border=" 0 "alt=" clip_image002 "src=" http://s3.51cto.com/wyfs02/M02/77/59/ Wkiom1zmr6lstu2zaaauqlvf7ks337.jpg "" 244 "height=" 169 "/>

Figure 5.1 Setting the. gif type file permissions

(2) Follow the above method to add the user to the. jpg and. bmp file read, write permissions, set to complete 5.2.

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image004 "border=" 0 "alt=" clip_image004 "src=" http://s3.51cto.com/wyfs02/M00/77/59/ Wkiom1zmr6pyh0pbaaamllwwm5i394.jpg "" 244 "height=" 155 "/>

Figure 5.2 Setting the. jpg and. bmp type File permissions

(3) Continue to click the Add button in Figure 5.2, set the user's access to other types of files in the Directory Access Rules window to read-only, and then click the Save button, as shown in 5.3.

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image006 "border=" 0 "alt=" clip_image006 "src=" http://s3.51cto.com/wyfs02/M01/77/59/ Wkiom1zmr6pj_mruaaat0zpxxos252.jpg "" 244 "height=" 169 "/>

Figure 5.3 Setting other types of file permissions

(4) Click the Add button in Figure 5.2 again to set the user's access rights to their home directory as read-only in the Directory Access Rules window, as shown in user rights access rule 5.4 after adding, click the Save button to save.

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image008 "border=" 0 "alt=" clip_image008 "src=" http://s3.51cto.com/wyfs02/M01/77/57/ Wkiol1zmsbsijcgeaaaneva_-ui218.jpg "" 244 "height=" 156 "/>

Figure 5.4 User rights access rules

To access the FTP server on the client computer, users can successfully upload. gif,. jpg, and. bmp file types, and when users upload. doc or other type of file, they are prompted with the error message shown in 5.5.

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; margin:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image010 "border=" 0 "alt=" clip_image010 "src=" http://s3.51cto.com/wyfs02/M00/77/57/ Wkiol1zmsbwigycjaaacezp2awi364.jpg "" 244 "height="/>

Figure 5.5 Error message

Reopen the Directory Access tab of the user's properties, select a rule, and on the right side of the window you can adjust the priority of its rules by the up or down buttons. To ensure that user permissions are applied correctly, you need to place the rules for the file types on the rules of the home directory.

650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" clip_image012 "border=" 0 "alt=" clip_image012 "src=" http://s3.51cto.com/wyfs02/M01/77/57/ Wkiol1zmsbwtppgiaaataygnpec331.jpg "" 244 "height=" 155 "/>

Figure 5.6 Adjusting Rule precedence

Restricting file types using Serv-u

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.