In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Use Serv-u to restrict file types
U case requirements
How to use Serv-U to restrict the types of files uploaded by users?
U knowledge hint
Using Serv-U can be used not only to restrict the user's read, write, delete and other permissions, but also according to the file type.
Case: restrict users to upload files of type .gif, .jpg, and .bmp only.
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 set user access to .gif files in the Directory access rules window. Enter "* .gif" in the path bar, set permissions to read and write, and then click the Save button, as shown in figure 5.1.
Figure 5.1 setting permissions for .gif type files
(2) add the user's read and write permissions to .jpg and .bmp files in the above way, as shown in figure 5.2.
Figure 5.2 setting file permissions for .jpg and .bmp types
(3) continue to click the "add" button in figure 5.2, set user access to other types of files as read-only in the "Directory access rules" window, and then click the "Save" button, as shown in figure 5.3.
Figure 5.3 setting permissions for other types of files
(4) Click the "add" button in figure 5.2 again, and set the user's access to its home directory as read-only in the "Directory access rules" window. After adding, the user rights access rules are shown in figure 5.4. Click the "Save" button to save.
Figure 5.4 user permission access rules
By accessing the FTP server on the client, the user can successfully upload files of .gif, .jpg, and .bmp types, and when the user uploads .doc or other types of files, an error message is prompted as shown in figure 5.5.
Figure 5.5 error message
Reopen the Directory access tab of the user properties, select a rule, and use the up or Down buttons on the right side of the window to adjust the priority of the rule. To ensure that user permissions are applied correctly, you need to put the rules of the file type above the rules of the home directory.
Figure 5.6 adjust the priority of rules
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.