Authority management method and device for distributed file system, server and medium
A distributed file and rights management technology, applied in the computer field, can solve the problems of not being able to add firewalls, illegal users imitating legal users, and whether the users of the entrance machine are legal to detect, etc., to achieve the effect of improving security.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] figure 1 It is a flow chart of the authority management method of the distributed file system provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of managing the authority of the distributed file system, and the method can be implemented by the authority management device of the distributed file system To execute, the device may be implemented in software and / or hardware, and may be integrated into a server. Such as figure 1 As shown, the method specifically includes:
[0028] S110. In response to an access request to the distributed file system, acquire a user name and an IP address corresponding to the access request.
[0029] As the master node, NameNode is responsible for managing metadata, which mainly includes directory structure, permission information, and file block storage information, while DataNode, as a slave node, is responsible for the storage of specific data blocks. Exemplarily, the directory structure in...
Embodiment 2
[0043] figure 2 It is a flow chart of the authority management method of the distributed file system provided by Embodiment 2 of the present invention, and this embodiment is further optimized on the basis of the foregoing embodiments. like figure 2 As shown, the method specifically includes:
[0044] S210. In response to an access request to the distributed file system, acquire a user name and an IP address corresponding to the access request.
[0045] S220. If the access request comes from the portal machine server, match the obtained user name and IP address with the pre-acquired allowed user set.
[0046] S230. If the user name and IP address match the allowed user set, check the read and write permission according to the user name corresponding to the access request, wherein the allowed user set includes at least one IP address and corresponding At least one allowed username.
[0047] In the distributed file system, the business leader can only add users of his own ...
Embodiment 3
[0057] image 3 It is a flow chart of the permission management method of the distributed file system provided by Embodiment 3 of the present invention, and this embodiment is further optimized on the basis of the foregoing embodiments. like image 3 As shown, the method specifically includes:
[0058] S310. In response to an access request to the distributed file system, acquire a user name and an IP address corresponding to the access request.
[0059] S320. If the access request comes from the portal server, match the obtained user name and IP address with the pre-acquired allowed user set, and determine whether to allow the access request according to the matching result, wherein the allowed user set is distributed by the user in advance. The set of allowed users configured by the web service for the file system.
[0060] Optionally, the operation of obtaining the allowed user set includes:
[0061] Obtain and update the allowed user set according to the preset cycle, ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


