CN116955303A - Shared directory management method, device, electronic equipment and medium - Google Patents
Shared directory management method, device, electronic equipment and medium Download PDFInfo
- Publication number
- CN116955303A CN116955303A CN202310868300.0A CN202310868300A CN116955303A CN 116955303 A CN116955303 A CN 116955303A CN 202310868300 A CN202310868300 A CN 202310868300A CN 116955303 A CN116955303 A CN 116955303A
- Authority
- CN
- China
- Prior art keywords
- shared directory
- management
- program
- directory
- current shared
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/176—Support for shared access to files; File sharing support
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/128—Details of file system snapshots on the file-level, e.g. snapshot creation, administration, deletion
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/13—File access structures, e.g. distributed indices
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Storage Device Security (AREA)
Abstract
Description
技术领域Technical field
本公可用于金融领域或其他领域,更具体地涉及一种共享目录管理方法、装置、电子设备、存储介质和程序产品。The present invention can be used in the financial field or other fields, and more specifically relates to a shared directory management method, device, electronic equipment, storage medium and program product.
背景技术Background technique
将文档目录共享于其他用户及不同的端机,是文档传输的一种重要途径,也是信创端机与传统windows端机间的重要数据传输方式,普遍存在于当前办公事务处理过程。按当前信息安全管理有关规定要求目录共享须施行最小授权原则,须精准授权给使用者,使用完毕后应尽快关闭共享。为此共享目录的开启和关闭非常频繁。Sharing document directories with other users and different terminals is an important way of document transmission. It is also an important data transmission method between Xinchuang terminals and traditional Windows terminals. It is commonly used in the current office transaction process. According to the current regulations on information security management, directory sharing must implement the minimum authorization principle, and users must be accurately authorized. Sharing should be closed as soon as possible after use. The shared directory is opened and closed very frequently for this reason.
当前我们使用WindowsAD域架构集中式目录管理服务环境,每个用户均单独分配用户名。若某一用户把自己的目录共享予他人访问,需要使用windows操作系统的“目录共享”功能。实际操作中,共享设置过程比较复杂,需要操作若干步骤。而主要使用者为业务人员,其对操作系统的专业能力普遍不足,操作过程易出现授权权限扩大化,向所有人(Everyone)授权的问题,共享访问完成后还须记住及时关闭共享,稍有不慎易发生一定的信息安全风险事件。We currently use a WindowsAD domain architecture centralized directory management service environment, and each user is assigned a separate user name. If a user shares his directory for others to access, he needs to use the "directory sharing" function of the Windows operating system. In actual operation, the sharing setting process is relatively complicated and requires several steps. The main users are business personnel, whose professional capabilities in operating systems are generally insufficient. The operation process is prone to problems such as expansion of authorization rights and authorization to everyone. After the shared access is completed, you must remember to close the sharing in time. Certain information security risk events may easily occur if you are not careful.
当前window10系统对当前目录开启共享有三种实现方法以及存在的缺陷情况。Currently, the Windows 10 system has three implementation methods for enabling sharing of the current directory and the existing defects.
第一种方法步骤为:点击,属性→共享→高级共享→调整被授权用户和权限→共享目录。The first method steps are: click, Properties → Sharing → Advanced Sharing → Adjust authorized users and permissions → Shared directory.
存在问题:存在“Everyone完全控制”权限(向所有人),其他被授权用户信息缺失。违反信息管理要求,Everyone需要删除,然后添加缺失的被授权用户名和权限。享目录删除后,权限表内开启共享时添加的被授权用户名和权限未同步删除,须手工删除。点击“编辑”删除被授权用户后,户名权限记忆消失,每次重新开启共享都要重新设置被授权用户名和权限。There is a problem: "Everyone full control" permission exists (to everyone), and other authorized user information is missing. Violating information management requirements, Everyone needs to be deleted and then added with missing authorized usernames and permissions. After the shared directory is deleted, the authorized user names and permissions added when sharing is enabled in the permission table are not deleted simultaneously and must be deleted manually. After clicking "Edit" to delete the authorized user, the memory of the user name and permissions will disappear. Each time sharing is reopened, the authorized user name and permissions must be reset.
第二种方法步骤为:点击,属性→共享→高级共享→共享此文件夹→权限→Everyone读取权限(向所有人),须先删除Everyone,然后添加被授权用户名和权限→确定。属性→安全→编辑→添加缺失的被授权用户名和权限→确定。The steps of the second method are: click, Properties → Sharing → Advanced Sharing → Share this folder → Permissions → Everyone read permission (to everyone), you must first delete Everyone, then add the authorized user name and permissions → OK. Properties → Security → Edit → Add missing authorized user names and permissions → OK.
存在问题:Everyone需要删除,然后添加缺失的被授权用户名和权限。没有权限记忆功能,每再开启共享都要重新设置被授权用户名和权限。共享目录删除后,属性→安全(用户访问控制授权)权限表内开启共享时添加的被授权用户和权限未同步删除,须手动删除。点击“编辑”删除被授权用户后,户名权限记忆消失,每次重新开启共享都要重新设置被授权用户名和权限。There is a problem: Everyone needs to be deleted and then the missing authorized username and permissions added. There is no permission memory function, and the authorized user name and permissions must be reset every time sharing is enabled. After the shared directory is deleted, the authorized users and permissions added when sharing is enabled in the permission table of Properties → Security (User Access Control Authorization) are not deleted simultaneously and must be deleted manually. After clicking "Edit" to delete the authorized user, the memory of the user name and permissions will disappear. Each time sharing is reopened, the authorized user name and permissions must be reset.
第三种方法步骤为:点击,授权访问权限→特定用户→调整被授权用户和权限→共享。The steps of the third method are: click, authorize access rights → specific users → adjust authorized users and permissions → share.
存在问题:其他被授权用户缺失,违反信息管理要求,Everyone需要删除,然后添加缺失的被授权用户名和权限。共享目录删除后,属性→安全(用户访问控制授权)权限表内开启共享时添加的被授权用户名和权限未同步删除,须手动删除。点击“编辑”删除被授权用户名后,户名权限记忆消失,每次重新开启共享都要重新设置被授权用户名和权限。There is a problem: other authorized users are missing, which violates information management requirements. Everyone needs to be deleted and then the missing authorized user names and permissions are added. After the shared directory is deleted, the authorized user names and permissions added when sharing is enabled in the permission table of Properties → Security (User Access Control Authorization) are not deleted simultaneously and must be deleted manually. After clicking "Edit" to delete the authorized user name, the memory of the user name and permissions will disappear. Each time sharing is reopened, the authorized user name and permissions must be reset.
对照信息安全管理要求,以上三方法存在显著的三个问题:Compared with the information security management requirements, there are three obvious problems in the above three methods:
(1)存在访问权限扩大化问题隐患(易对Everyone授予访问权限)。(1) There is a hidden danger of expanding access rights (it is easy to grant access rights to Everyone).
(2)共享关闭后,开启共享时添加的被授权用户未同步清除。(2) After sharing is turned off, the authorized users added when sharing is turned on are not cleared simultaneously.
(3)须时刻记住共享访问完成后及时关闭共享,操作性及效率很低。(3) You must always remember to close the sharing in time after the shared access is completed. The operability and efficiency are very low.
为了防范上述存在的三个问题,规避上述各项问题,提供了一种共享目录管理方法,在操作系统配置一管理程序并安装管理程序,程序运行于windows环境,通过便捷的开启共享、关闭共享、自动清除超时限共享,自动清除用户权限,授权用户权限清晰,有效解决上述信息安全风险隐患,实现安全、便捷的文件共享环境,方便安全合规便捷的使用共享目录,减少操作系统资源开销。In order to prevent the above three existing problems and avoid the above problems, a shared directory management method is provided. A management program is configured in the operating system and installed. The program runs in the Windows environment and can conveniently open and close sharing. , automatically clear timeout sharing, automatically clear user permissions, and clear authorized user permissions, effectively solving the above information security risks, realizing a safe and convenient file sharing environment, facilitating safe, compliant and convenient use of shared directories, and reducing operating system resource overhead.
发明内容Contents of the invention
鉴于上述问题,本公开提供了一种共享目录管理方法、装置、电子设备、存储介质和程序产品。In view of the above problems, the present disclosure provides a shared directory management method, device, electronic device, storage medium and program product.
根据本公开的第一个方面,提供了一种共享目录管理方法,适于在计算设备中执行,计算设备中存在操作系统,方法包括:在操作系统配置一管理程序并安装管理程序,通过在文件资源管理器中选择网络共享页面,调用并运行安装完成后的管理程序;其中,管理程序包括任务计划程序,任务计划程序包括管理任务,管理任务用于定时启动管理程序;设置管理程序的主机用户权限,创建当前共享目录并设置其他用户的访问权限,开启当前共享目录;在当前共享目录完成共享后,管理任务执行关闭当前共享目录;在关闭当前共享目录后,对管理程序进行卸载。According to a first aspect of the present disclosure, a shared directory management method is provided, which is suitable for execution in a computing device. There is an operating system in the computing device. The method includes: configuring a management program in the operating system and installing the management program, by Select the network sharing page in the file explorer, call and run the management program after the installation is completed; the management program includes the task scheduler, the task scheduler includes the management tasks, and the management tasks are used to start the management program regularly; set the host of the management program User permissions, create the current shared directory and set the access permissions of other users, open the current shared directory; after the current shared directory is shared, the management task is executed to close the current shared directory; after the current shared directory is closed, the management program is uninstalled.
根据本公开的实施例,设置管理程序的主机用户权限,创建当前共享目录并设置其他用户的访问权限,开启当前共享目录包括:判断主机用户权限是否为首次设置,如果是,则将主机用户权限设置为当前主机用户的权限信息;否则,将上一次设置的权限信息保留为主机用户权限;调用操作系统的创建指令,创建当前共享目录;调用操作系统的访问指令,设置其他用户的访问权限信息;保存主机用户权限信息和其他用户的访问权限信息。According to an embodiment of the present disclosure, setting the host user permissions of the management program, creating the current shared directory and setting the access permissions of other users, and opening the current shared directory include: determining whether the host user permissions are set for the first time, and if so, changing the host user permissions Set as the permission information of the current host user; otherwise, retain the last set permission information as the host user permission; call the operating system's creation command to create the current shared directory; call the operating system's access command to set the access permission information of other users ;Save host user permission information and other users' access permission information.
根据本公开的实施例,调用操作系统的创建指令,创建当前共享目录包括:利用系统管理工具获得第一对象,利用第一对象的属性,访问计算设备中已生成的共享目录列表;遍历计算设备中已生成的共享目录列表,比对当前共享目录的目录名,直至当前共享目录的目录名不重复。According to an embodiment of the present disclosure, calling the creation instruction of the operating system to create the current shared directory includes: using a system management tool to obtain the first object, using the attributes of the first object to access the generated shared directory list in the computing device; traversing the computing device The generated shared directory list is compared with the directory name of the current shared directory until the directory name of the current shared directory is not repeated.
根据本公开的实施例,管理任务用于执行以下操作中的任意一个:调用操作系统的任务指令,执行任务计划程序中的管理任务;运行任务计划程序;定时启动管理程序;或者关闭当前共享目录;其中,关闭当前共享目录包括:遍历计算设备中已生成的共享目录列表,比对已生成的共享目录的共享时间与当前共享目录的共享时间之差;将超过已生成的共享目录的共享时间以及时间信息异常的当前共享目录进行关闭,同时清除当前共享目录的权限信息。According to an embodiment of the present disclosure, the management task is used to perform any one of the following operations: calling task instructions of the operating system to perform management tasks in the task scheduler; running the task scheduler; starting the management program regularly; or closing the current shared directory ; Among them, closing the current shared directory includes: traversing the shared directory list that has been generated in the computing device, and comparing the difference between the sharing time of the generated shared directory and the sharing time of the current shared directory; the sharing time of the generated shared directory will be exceeded And the current shared directory with abnormal time information is closed, and the permission information of the current shared directory is cleared.
根据本公开的实施例,关闭当前共享目录,还包括:调用操作系统的关闭指令,利用系统管理工具获得第二对象,利用第二对象的属性,访问计算设备中已生成的共享目录列表和当前共享目录;遍历计算设备中已生成的共享目录列表和当前共享目录,利用第二对象的属性,清除当前共享目录的权限信息。According to an embodiment of the present disclosure, closing the current shared directory further includes: calling a shutdown instruction of the operating system, using a system management tool to obtain a second object, and using attributes of the second object to access the generated shared directory list and the current shared directory in the computing device. Shared directory; traverse the generated shared directory list and the current shared directory in the computing device, and use the attributes of the second object to clear the permission information of the current shared directory.
根据本公开的实施例,通过调整管理程序的参数,调整当前共享目录的共享时间及定时清除当前共享目录的权限信息。According to embodiments of the present disclosure, by adjusting parameters of the management program, the sharing time of the current shared directory is adjusted and the permission information of the current shared directory is cleared regularly.
根据本公开的实施例,管理程序的参数包括:当前共享目录的存续时间、清理当前共享目录的开始时间、当前共享目录的管理时间。According to an embodiment of the present disclosure, the parameters of the management program include: the duration of the current shared directory, the start time of cleaning the current shared directory, and the management time of the current shared directory.
根据本公开的实施例,一种共享目录管理方法还包括:调用操作系统的使用说明指令,显示管理程序的使用说明,使用说明包括功能介绍、使用方法及注意事项。According to an embodiment of the present disclosure, a shared directory management method further includes: calling instructions for use of the operating system and displaying instructions for the management program. The instructions for use include function introduction, usage methods and precautions.
根据本公开的实施例,在关闭当前共享目录后,对管理程序进行卸载包括:删除文件资源管理器中的网络共享页面;删除任务计划程序中的管理任务;清除计算设备中已生成的共享目录列表和当前共享目录。According to an embodiment of the present disclosure, after closing the current shared directory, uninstalling the management program includes: deleting the network sharing page in the file explorer; deleting the management task in the task scheduler; clearing the generated shared directory in the computing device List and current shared directory.
本公开的第二方面提供了一种共享目录管理装置,适于在计算设备中执行,计算设备中存在操作系统,共享目录管理装置包括:程序安装模块,用于在操作系统配置一管理程序并安装管理程序,通过在文件资源管理器中选择网络共享页面,调用并运行安装完成后的管理程序;其中,管理程序包括任务计划程序,任务计划程序包括管理任务,管理任务用于定时启动管理程序;共享目录开启模块,用于设置管理程序的主机用户权限,创建当前共享目录并设置其他用户的访问权限,开启当前共享目录;共享目录关闭模块,用于在当前共享目录完成共享后,管理任务执行关闭当前共享目录;程序卸载模块,用于在关闭当前共享目录后,对管理程序进行卸载。A second aspect of the present disclosure provides a shared directory management device, which is suitable for execution in a computing device. There is an operating system in the computing device. The shared directory management device includes: a program installation module for configuring a management program in the operating system and Install the management program and select the network share page in the file explorer to call and run the management program after the installation is completed; the management program includes the task scheduler, the task scheduler includes management tasks, and the management task is used to start the management program regularly. ; The shared directory opening module is used to set the host user permissions of the management program, create the current shared directory and set the access permissions of other users, and open the current shared directory; the shared directory closing module is used to manage tasks after the current shared directory is shared. Execute closing of the current shared directory; the program uninstall module is used to uninstall the management program after closing the current shared directory.
本公开的第三方面提供了一种电子设备,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,其中,当一个或多个程序被一个或多个处理器执行时,使得一个或多个处理器执行上述共享目录管理方法。A third aspect of the present disclosure provides an electronic device, including: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors When, one or more processors are caused to execute the above shared directory management method.
本公开的第四方面还提供了一种计算机可读存储介质,其上存储有可执行指令,该指令被处理器执行时使处理器执行上述共享目录管理方法。A fourth aspect of the present disclosure also provides a computer-readable storage medium on which executable instructions are stored. When executed by a processor, the instructions cause the processor to perform the above shared directory management method.
本公开的第五方面还提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述共享目录管理方法。A fifth aspect of the present disclosure also provides a computer program product, including a computer program that implements the above shared directory management method when executed by a processor.
附图说明Description of the drawings
通过以下参照附图对本公开实施例的描述,本公开的上述内容以及其他目的、特征和优点将更为清楚,在附图中:The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
图1示意性示出了根据本公开实施例的共享目录管理方法及装置的系统架构。Figure 1 schematically shows the system architecture of a shared directory management method and device according to an embodiment of the present disclosure.
图2示意性示出了根据本公开实施例的共享目录管理方法的流程图。Figure 2 schematically shows a flow chart of a shared directory management method according to an embodiment of the present disclosure.
图3示意性示出了根据本公开实施例的安装并运行管理程序过程的流程图。FIG. 3 schematically illustrates a flow chart of a process of installing and running a hypervisor according to an embodiment of the present disclosure.
图4示意性示出了根据本公开实施例的开启共享目录过程的流程图。Figure 4 schematically shows a flow chart of a process of opening a shared directory according to an embodiment of the present disclosure.
图5示意性示出了根据本公开实施例的共享目录管理程序卸载的流程图。Figure 5 schematically shows a flow chart of shared directory management program uninstallation according to an embodiment of the present disclosure.
图6示意性示出了根据本公开实施例的共享目录管理装置的框图。Figure 6 schematically shows a block diagram of a shared directory management device according to an embodiment of the present disclosure.
图7示意性示出了根据本公开实施例的共享目录管理方法的电子设备的方框图。FIG. 7 schematically shows a block diagram of an electronic device according to a shared directory management method according to an embodiment of the present disclosure.
具体实施方式Detailed ways
以下,将参照附图来描述本公开的实施例。但是应该理解,这些描述只是示例性的,而并非要限制本公开的范围。在下面的详细描述中,为便于解释,阐述了许多具体的细节以提供对本公开实施例的全面理解。然而,明显地,一个或多个实施例在没有这些具体细节的情况下也可以被实施。此外,在以下说明中,省略了对公知结构和技术的描述,以避免不必要地混淆本公开的概念。Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood, however, that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for convenience of explanation, numerous specific details are set forth to provide a comprehensive understanding of the disclosed embodiments. It will be apparent, however, that one or more embodiments may be practiced without these specific details. Furthermore, in the following description, descriptions of well-known structures and techniques are omitted to avoid unnecessarily confusing the concepts of the present disclosure.
在此使用的术语仅仅是为了描述具体实施例,而并非意在限制本公开。在此使用的术语“包括”、“包含”等表明了所述特征、步骤、操作和/或部件的存在,但是并不排除存在或添加一个或多个其他特征、步骤、操作或部件。The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the disclosure. The terms "comprising," "comprising," and the like, as used herein, indicate the presence of stated features, steps, operations, and/or components but do not exclude the presence or addition of one or more other features, steps, operations, or components.
在此使用的所有术语(包括技术和科学术语)具有本领域技术人员通常所理解的含义,除非另外定义。应注意,这里使用的术语应解释为具有与本说明书的上下文相一致的含义,而不应以理想化或过于刻板的方式来解释。All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art, unless otherwise defined. It should be noted that the terms used here should be interpreted to have meanings consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
在使用类似于“A、B和C等中至少一个”这样的表述的情况下,一般来说应该按照本领域技术人员通常理解该表述的含义来予以解释(例如,“具有A、B和C中至少一个的系统”应包括但不限于单独具有A、单独具有B、单独具有C、具有A和B、具有A和C、具有B和C、和/或具有A、B、C的系统等)。Where an expression similar to "at least one of A, B, C, etc." is used, it should generally be interpreted in accordance with the meaning that a person skilled in the art generally understands the expression to mean (e.g., "having A, B and C "A system with at least one of" shall include, but is not limited to, systems with A alone, B alone, C alone, A and B, A and C, B and C, and/or systems with A, B, C, etc. ).
附图中示出了一些方框图和/或流程图。应理解,方框图和/或流程图中的一些方框或其组合可以由计算机程序指令来实现。这些计算机程序指令可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器,从而这些指令在由该处理器执行时可以创建用于实现这些方框图和/或流程图中所说明的功能/操作的装置。本公开的技术可以硬件和/或软件(包括固件、微代码等)的形式来实现。另外,本公开的技术可以采取存储有指令的计算机可读存储介质上的计算机程序产品的形式,该计算机程序产品可供指令执行系统使用或者结合指令执行系统使用。Several block diagrams and/or flow diagrams are shown in the accompanying drawings. It will be understood that some blocks in the block diagrams and/or flowchart illustrations, or combinations thereof, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the instructions, when executed by the processor, create functions for implementing the functions illustrated in these block diagrams and/or flowcharts. /operating device. The technology of the present disclosure may be implemented in the form of hardware and/or software (including firmware, microcode, etc.). Additionally, the technology of the present disclosure may take the form of a computer program product on a computer-readable storage medium having instructions stored thereon, and the computer program product may be used by or in conjunction with an instruction execution system.
在本公开的技术方案中,所涉及的用户个人信息的收集、存储、使用、加工、传输、提供、公开和应用等处理,均符合相关法律法规的规定,采取了必要保密措施,且不违背公序良俗。In the technical solution of this disclosure, the collection, storage, use, processing, transmission, provision, disclosure and application of user personal information are in compliance with relevant laws and regulations, necessary confidentiality measures are taken, and do not violate Public order and good customs.
在本公开的技术方案中,在获取或采集用户个人信息之前,均获取了用户的授权或同意。In the technical solution of the present disclosure, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.
本公开的实施例提供一种共享目录管理方法、装置、电子设备、存储介质和程序产品,可用于金融领域或其他领域。适于在计算设备中执行,计算设备中存在操作系统,该方法包括:在操作系统配置一管理程序并安装管理程序,通过在文件资源管理器中选择网络共享页面,调用并运行安装完成后的管理程序;其中,管理程序包括任务计划程序,任务计划程序包括管理任务,管理任务用于定时启动管理程序;设置管理程序的主机用户权限,创建当前共享目录并设置其他用户的访问权限,开启当前共享目录;在当前共享目录完成共享后,管理任务执行关闭当前共享目录;在关闭当前共享目录后,对管理程序进行卸载。Embodiments of the present disclosure provide a shared directory management method, device, electronic device, storage medium and program product, which can be used in the financial field or other fields. The method is suitable for execution in a computing device, and an operating system exists in the computing device. The method includes: configuring a management program in the operating system and installing the management program, and selecting the network sharing page in the file explorer to call and run the installation program after the installation is completed. Management program; among them, the management program includes the task scheduler, the task scheduler includes management tasks, and the management tasks are used to start the management program regularly; set the host user permissions of the management program, create the current shared directory and set the access permissions of other users, open the current Shared directory; after the current shared directory is shared, the management task is executed to close the current shared directory; after the current shared directory is closed, the management program is uninstalled.
图1示意性示出了根据本公开实施例的共享目录管理方法及装置的系统架构。需要注意的是,图1所示仅为可以应用本公开实施例的系统架构的示例,以帮助本领域技术人员理解本公开的技术内容,但并不意味着本公开实施例不可以用于其他设备、系统、环境或场景。Figure 1 schematically shows the system architecture of a shared directory management method and device according to an embodiment of the present disclosure. It should be noted that Figure 1 is only an example of a system architecture to which embodiments of the present disclosure can be applied, to help those skilled in the art understand the technical content of the present disclosure, but does not mean that the embodiments of the present disclosure cannot be used in other applications. Device, system, environment or scenario.
如图1所示,根据该实施例的共享目录管理方法及装置的系统架构100可以包括终端设备101、102、103、网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in Figure 1, the system architecture 100 of the shared directory management method and apparatus according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is a medium used to provide communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种通讯客户端应用,例如购物类应用、网页浏览器应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等(仅为示例)。Users can use terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 101, 102, and 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).
终端设备101、102、103可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。The terminal devices 101, 102, and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
服务器105可以是提供各种服务的服务器,例如对用户利用终端设备101、102、103所浏览的网站提供支持的后台管理服务器(仅为示例)。后台管理服务器可以对接收到的用户请求等数据进行分析等处理,并将处理结果(例如根据用户请求获取或生成的网页、信息、或数据等)反馈给终端设备。The server 105 may be a server that provides various services, such as a backend management server that provides support for websites browsed by users using the terminal devices 101, 102, and 103 (example only). The background management server can analyze and process the received user request and other data, and feed back the processing results (such as web pages, information, or data obtained or generated according to the user request) to the terminal device.
需要说明的是,本公开实施例所提供的共享目录管理方法一般可以由服务器105执行。相应地,本公开实施例所提供的共享目录管理装置一般可以设置于服务器105中。本公开实施例所提供的共享目录管理方法也可以由不同于服务器105且能够与终端设备101、102、103和/或服务器105通信的服务器或服务器集群执行。相应地,本公开实施例所提供的共享目录管理装置也可以设置于不同于服务器105且能够与终端设备101、102、103和/或服务器105通信的服务器或服务器集群中。It should be noted that the shared directory management method provided by the embodiment of the present disclosure can generally be executed by the server 105 . Correspondingly, the shared directory management device provided by the embodiment of the present disclosure may generally be installed in the server 105 . The shared directory management method provided by the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and/or the server 105. Correspondingly, the shared directory management apparatus provided by the embodiment of the present disclosure may also be provided in a server or server cluster that is different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the number of terminal devices, networks and servers in Figure 1 is only illustrative. Depending on implementation needs, there can be any number of end devices, networks, and servers.
以下将基于图1描述的系统架构,通过图2~图7对本公开实施例的共享目录管理方法进行详细描述。The shared directory management method of the embodiment of the present disclosure will be described in detail based on the system architecture described in Figure 1 and through Figures 2 to 7 below.
图2示意性示出了根据本公开实施例的共享目录管理方法的流程图。Figure 2 schematically shows a flow chart of a shared directory management method according to an embodiment of the present disclosure.
操作S210,在操作系统配置一管理程序并安装管理程序,通过在文件资源管理器中选择网络共享页面,调用并运行安装完成后的管理程序;In operation S210, configure a management program in the operating system and install the management program. By selecting the network sharing page in the file explorer, call and run the installed management program;
其中,管理程序包括任务计划程序,任务计划程序包括管理任务,管理任务用于定时启动管理程序。Among them, the management program includes a task scheduler, the task scheduler includes management tasks, and the management tasks are used to start the management program regularly.
操作S220,设置管理程序的主机用户权限,创建当前共享目录并设置其他用户的访问权限,开启当前共享目录。Operation S220 is to set the host user permissions of the management program, create the current shared directory and set the access permissions of other users, and open the current shared directory.
操作S230,在当前共享目录完成共享后,管理任务执行关闭当前共享目录。In operation S230, after the current shared directory is shared, the management task is executed to close the current shared directory.
操作S240,在关闭当前共享目录后,对管理程序进行卸载。In operation S240, after closing the current shared directory, the management program is uninstalled.
通过本公开的实施例,基于共享目录管理方法,通过便捷的开启共享、关闭共享、自动清除超时限共享,自动清除用户权限,授权用户权限清晰,有效解决信息安全风险隐患,实现安全、便捷的文件共享环境,方便大家安全合规便捷的使用共享目录,减少操作系统资源开销。Through the embodiments of the present disclosure, based on the shared directory management method, through convenient opening and closing of sharing, automatic clearing of time-limited sharing, automatic clearing of user permissions, clear authorized user permissions, information security risks are effectively solved, and safe and convenient The file sharing environment facilitates everyone to use shared directories safely, compliantly and conveniently, and reduces operating system resource overhead.
图3示意性示出了根据本公开实施例的安装并运行管理程序过程的流程图。FIG. 3 schematically illustrates a flow chart of a process of installing and running a hypervisor according to an embodiment of the present disclosure.
如图3所示,在本公开实施例中,上述操作S210中,通过在操作系统中配置管理程序,安装管理程序后,通过在文件资源管理器目录中选择网络共享页面,调出管理程序。其中,管理程序包括任务计划程序,任务计划程序包括管理任务,管理任务用于定时启动管理程序。As shown in Figure 3, in the embodiment of the present disclosure, in the above-mentioned operation S210, the management program is configured in the operating system, and after the management program is installed, the management program is called up by selecting the network sharing page in the file resource manager directory. Among them, the management program includes a task scheduler, the task scheduler includes management tasks, and the management tasks are used to start the management program regularly.
具体而言,点击管理程序进行安装,运行安装过程中,添加注册表项,实现鼠标右键菜单添加网络共享页面的选项;设置程序参数-reg,执行管理程序。Specifically, click on the management program to install it. During the installation process, add registry entries to realize the option of adding a network sharing page in the right-click menu of the mouse; set the program parameter -reg and execute the management program.
其中,当设置程序参数为-M,执行任务计划程序,任务计划程序包括管理任务,管理任务用于定时启动管理程序。Among them, when the program parameter is set to -M, the task scheduler is executed. The task scheduler includes management tasks, and the management tasks are used to start the management program regularly.
当显示管理程序安装已完成后,安装结束。再通过在文件资源管理器目录中选择网络共享页面,调出管理程序。When the display management program installation is complete, the installation ends. Then call up the management program by selecting the network sharing page in the File Explorer directory.
图4示意性示出了根据本公开实施例的开启共享目录过程的流程图。Figure 4 schematically shows a flow chart of a process of opening a shared directory according to an embodiment of the present disclosure.
如图4所示,在本公开实施例中,上述操作S220中,设置管理程序的主机用户权限,创建当前共享目录并设置其他用户的访问权限,开启当前共享目录。可以进一步包括操作S221~S224。As shown in Figure 4, in the embodiment of the present disclosure, in the above-mentioned operation S220, the host user permissions of the management program are set, the current shared directory is created and the access permissions of other users are set, and the current shared directory is opened. Operations S221 to S224 may further be included.
在操作S221,判断主机用户权限是否为首次设置,如果是,则将主机用户权限设置为当前主机用户的权限信息;否则,将上一次设置的权限信息保留为主机用户权限。In operation S221, it is determined whether the host user permission is set for the first time. If so, the host user permission is set to the permission information of the current host user; otherwise, the last set permission information is retained as the host user permission.
在操作S222,调用操作系统的创建指令,创建当前共享目录。In operation S222, the creation instruction of the operating system is called to create the current shared directory.
在操作S223,调用操作系统的访问指令,设置其他用户的访问权限信息。In operation S223, the access instruction of the operating system is called to set the access permission information of other users.
在操作S224,保存主机用户权限信息和其他用户的访问权限信息。In operation S224, the host user permission information and other users' access permission information are saved.
具体而言,当前目录未共享状态,选择我的网络共享页面调出管理程序,授权输入项自动填入上次开启共享时保存的被授权用户名及权限,作为缺省参考值,如果本目录为首次使用,无对应权限信息,则填入当前主机用户名及完全控制权限。Specifically, the current directory is not shared. Select the My Network Sharing page to call up the management program. The authorization input items are automatically filled in with the authorized user name and permissions saved when sharing was last opened as the default reference value. If this directory For first-time use and there is no corresponding permission information, fill in the current host user name and full control permissions.
为使程序具有良好的系统适用性,可直接调用操作系统的指令进行创建共享目录及授权。In order to make the program have good system applicability, the instructions of the operating system can be directly called to create the shared directory and authorize it.
在本实施例中,调用操作系统的创建指令,创建当前共享目录时,利用系统管理工具获得第一对象,利用第一对象的属性,访问计算设备中已生成的共享目录列表;遍历计算设备中已生成的共享目录列表,比对当前共享目录的目录名,直至当前共享目录的目录名不重复。In this embodiment, when the creation instruction of the operating system is called to create the current shared directory, the system management tool is used to obtain the first object, and the attributes of the first object are used to access the shared directory list generated in the computing device; traverse the computing device The generated shared directory list is compared with the directory name of the current shared directory until the directory name of the current shared directory is not repeated.
具体而言,利用Windows WMI(系统管理工具)获得对象winmgmts(第一对象),访问本机已生成的共享目录列表,按当前目录名称生成共享目录名称,但因名称不可重复,须进行防冲突处理。遍历本机已生成的共享目录列表,对比当前共享目录名,当前共享目录名有冲突时名称后部加括号内含序号,再比对,直至不冲突。Specifically, use Windows WMI (system management tool) to obtain the object winmgmts (the first object), access the shared directory list generated by this machine, and generate the shared directory name based on the current directory name. However, because the name cannot be repeated, anti-conflict must be performed deal with. Traverse the shared directory list generated by this machine and compare the current shared directory name. If there is a conflict in the current shared directory name, add a serial number in parentheses at the end of the name, and compare again until there is no conflict.
当主机用户授权成功后,使用操作系统指令icacls,实现其他用户访问控制授权。保存当前被授权的用户及权限,供下次开启共享时作为缺省参考值。When the host user is authorized successfully, use the operating system command icacls to implement access control authorization for other users. Save the currently authorized users and permissions as default reference values when sharing is enabled next time.
完成上述步骤后,显示当前目录已共享、当前共享目录名称、访问权限、同时简略提示信创系统访问方法。After completing the above steps, it will display that the current directory has been shared, the name of the current shared directory, access permissions, and a brief prompt on how to access the Xinchuang system.
通过本公开的实施例,便捷高效的开启共享,授权用户权限清晰。共享开启过程按需精确授权,完全规避Everyone,有效解决信息安全风险隐患。Through the embodiments of the present disclosure, sharing can be started conveniently and efficiently, and authorized user permissions are clear. The sharing opening process is authorized accurately on demand, completely avoiding everyone, and effectively solving hidden information security risks.
在本实施例中,管理程序在安装过程中,当设置程序参数为-M,执行任务计划程序,任务计划程序包括管理任务,其中,管理任务用于执行以下操作中的任意一个:In this embodiment, during the installation process of the management program, when the program parameter is set to -M, the task scheduler is executed. The task scheduler includes management tasks, where the management tasks are used to perform any of the following operations:
调用操作系统的任务指令,执行任务计划程序中的管理任务;运行任务计划程序;定时启动管理程序;或者关闭当前共享目录。Call the task instructions of the operating system to perform management tasks in the task scheduler; run the task scheduler; start the management program regularly; or close the current shared directory.
在本实例中,关闭当前共享目录包括:遍历计算设备中已生成的共享目录列表,比对已生成的共享目录的共享时间与当前共享目录的共享时间之差;将超过已生成的共享目录的共享时间以及时间信息异常的当前共享目录进行关闭,同时清除当前共享目录的权限信息。In this example, closing the current shared directory includes: traversing the generated shared directory list in the computing device, comparing the difference between the sharing time of the generated shared directory and the sharing time of the current shared directory; The current shared directory with abnormal sharing time and time information will be closed, and the permission information of the current shared directory will be cleared.
具体而言,管理程序在安装过程,通过在操作系统中设置参数-M,执行操作系统的任务计划程序,任务计划程序的管理任务。任务计划程序定时启动运行本管理程序(可通过指定时间间隔实现每日多次启动)Specifically, during the installation process, the management program executes the task scheduler of the operating system and the management tasks of the task scheduler by setting the parameter -M in the operating system. The task scheduler starts and runs this management program regularly (can be started multiple times a day by specifying time intervals)
管理任务中,通过Windows WMI(系统管理工具)获得对象winmgmts(第二对象),遍历本机已生成的共享目录列表,利用该对象提供的属性和方法,实现关闭共享功能。In the management task, the object winmgmts (second object) is obtained through Windows WMI (system management tool), the shared directory list generated by the machine is traversed, and the properties and methods provided by the object are used to close the sharing function.
管理任务中,遍历已生成的共享目录列表,比对描述已生成的共享目录的共享时间和当前共享目录的时间差,将超过时限的以及信息异常的当前共享目录,逐项删除予以关闭共享。In the management task, the generated shared directory list is traversed, and the sharing time of the generated shared directory is compared with the time difference of the current shared directory. Current shared directories that have exceeded the time limit and have abnormal information are deleted one by one to close the sharing.
在本实施例中,关闭当前共享目录还包括:调用操作系统的关闭指令,利用系统管理工具获得第二对象,利用第二对象的属性,访问计算设备中已生成的共享目录列表和当前共享目录;遍历计算设备中已生成的共享目录列表和当前共享目录,利用第二对象的属性,清除当前共享目录的权限信息。In this embodiment, closing the current shared directory also includes: calling a shutdown instruction of the operating system, using a system management tool to obtain the second object, and using the attributes of the second object to access the generated shared directory list and the current shared directory in the computing device. ; Traverse the generated shared directory list and the current shared directory in the computing device, and use the attributes of the second object to clear the permission information of the current shared directory.
具体而言,通过Windows WMI(系统管理工具)获得对象winmgmts(第二对象),利用该对象提供的属性和方法,遍历本机中已生成的共享目录列表和当前共享目录,对当前存在的共享目录逐项清除共享目录用户权限,逐项予以关闭共享。Specifically, the object winmgmts (second object) is obtained through Windows WMI (system management tool), and the properties and methods provided by the object are used to traverse the generated shared directory list and the current shared directory in the local machine, and the currently existing shares are Clear the user permissions of the shared directory one by one and close the sharing one by one.
在本实施例中,通过调整管理程序的参数,调整当前共享目录的共享时间及定时清除当前共享目录的权限信息。其中,管理程序的参数包括:当前共享目录的存续时间,如果当前共享时间超过该时间,共享目录须关闭清理(秒);清理当前共享目录的开始时间,为管理任务中关闭清除共享目录开始的时间;当前共享目录的管理时间,为执行管理任务的间隔时间。In this embodiment, by adjusting the parameters of the management program, the sharing time of the current shared directory is adjusted and the permission information of the current shared directory is cleared regularly. Among them, the parameters of the management program include: the duration of the current shared directory. If the current sharing time exceeds this time, the shared directory must be closed for cleaning (seconds); the start time of cleaning the current shared directory, which is the time when the shared directory is closed and cleared in the management task. Time; the management time of the current shared directory is the interval between execution of management tasks.
通过本公开的实施例,便捷的关闭共享目录管理程序,及高效运行计划程序执行共享目录管理任务。自动清除超时限共享,自动清除用户权限,实现安全、便捷的文件共享环境。Through the embodiments of the present disclosure, the shared directory management program can be conveniently closed, and the scheduler can be efficiently run to perform shared directory management tasks. Automatically clear timeout sharing and user permissions to achieve a safe and convenient file sharing environment.
在本实例中,选择我的网络共享页面调出管理程序,输入指令h,调用操作系统的使用说明指令,显示管理程序的使用说明,包括功能介绍、使用方法及注意事项。In this example, select the My Network Sharing page to call up the management program, enter the command h, call the operating system instruction command, and display the instructions for use of the management program, including function introduction, usage and precautions.
图5示意性示出了根据本公开实施例的共享目录管理程序卸载的流程图。Figure 5 schematically shows a flow chart of shared directory management program uninstallation according to an embodiment of the present disclosure.
如图5所示,在关闭当前共享目录后,对管理程序进行卸载包括操作S241~S243。As shown in Figure 5, after closing the current shared directory, uninstalling the management program includes operations S241 to S243.
在操作S241,删除文件资源管理器中的网络共享页面。In operation S241, the network sharing page in the file explorer is deleted.
在操作S242,删除任务计划程序中的管理任务。In operation S242, the management task in the task scheduler is deleted.
在操作S243,清除计算设备中已生成的共享目录列表和当前共享目录。In operation S243, the generated shared directory list and the current shared directory in the computing device are cleared.
通过本公开的实施例,方便快捷的使用及卸载,减少了操作系统资源开销。Through the embodiments of the present disclosure, usage and uninstallation are convenient and fast, and operating system resource overhead is reduced.
具体而言,选择我的网络共享页面调出管理程序,在注册表中,去除我的网络共享项,在操作系统中清除任务计划程序中的管理任务,并清除本机中全部的共享目录。Specifically, select the My Network Sharing page to bring up the management program, remove the My Network Sharing item in the registry, clear the management tasks in the Task Scheduler in the operating system, and clear all shared directories on the machine.
在本实例中,也可以在调出管理程序后,输入指令u,直接调用操作系统的卸载指令,完成管理程序的卸载。In this example, after calling up the management program, you can also enter the command u to directly call the uninstall command of the operating system to complete the uninstallation of the management program.
基于上述共享目录管理方法,本公开还提供了一种共享目录管理装置。以下将结合图6对该装置进行详细描述。Based on the above shared directory management method, the present disclosure also provides a shared directory management device. The device will be described in detail below with reference to FIG. 6 .
图6示意性示出了根据本公开实施例的共享目录管理装置的框图。Figure 6 schematically shows a block diagram of a shared directory management device according to an embodiment of the present disclosure.
如图6所示,该实施例的共享目录管理装置600包括程序安装模块610、共享目录开启模块620、共享目录关闭模块630、程序卸载模块640。As shown in FIG. 6 , the shared directory management device 600 of this embodiment includes a program installation module 610 , a shared directory opening module 620 , a shared directory closing module 630 , and a program uninstalling module 640 .
程序安装模块610,用于在所述操作系统配置一管理程序并安装所述管理程序,通过在文件资源管理器中选择网络共享页面,调用并运行安装完成后的管理程序;其中,所述管理程序包括任务计划程序,所述任务计划程序包括管理任务,所述管理任务用于定时启动所述管理程序。在一实施例中,程序安装模块610可以用于执行前文描述的操作S210,在此不再赘述。The program installation module 610 is used to configure a management program in the operating system and install the management program. By selecting the network sharing page in the file resource manager, call and run the management program after the installation is completed; wherein, the management program The program includes a task scheduler, the task scheduler includes a management task, and the management task is used to start the management program regularly. In one embodiment, the program installation module 610 may be used to perform the operation S210 described above, which will not be described again here.
共享目录开启模块620,用于设置所述管理程序的主机用户权限,创建当前共享目录并设置其他用户的访问权限,开启当前共享目录。在一实施例中,共享目录开启模块620可以用于执行前文描述的操作S220,在此不再赘述。The shared directory opening module 620 is used to set the host user permissions of the management program, create the current shared directory and set the access permissions of other users, and open the current shared directory. In one embodiment, the shared directory opening module 620 may be used to perform the operation S220 described above, which will not be described again here.
共享目录关闭模块630,用于在所述当前共享目录完成共享后,所述管理任务执行关闭所述当前共享目录。在一实施例中,共享目录关闭模块630可以用于执行前文描述的操作S230,在此不再赘述。The shared directory closing module 630 is configured to execute the management task to close the current shared directory after the current shared directory is shared. In one embodiment, the shared directory closing module 630 may be used to perform the operation S230 described above, which will not be described again here.
程序卸载模块640,用于在关闭所述当前共享目录后,对所述管理程序进行卸载。在一实施例中,程序卸载模块640可以用于执行前文描述的操作S240,在此不再赘述。The program uninstall module 640 is used to uninstall the management program after closing the current shared directory. In one embodiment, the program unloading module 640 may be used to perform the operation S240 described above, which will not be described again here.
根据本公开的实施例,程序安装模块610、共享目录开启模块620、共享目录关闭模块630和程序卸载模块640中的任意多个模块可以合并在一个模块中实现,或者其中的任意一个模块可以被拆分成多个模块。或者,这些模块中的一个或多个模块的至少部分功能可以与其他模块的至少部分功能相结合,并在一个模块中实现。根据本公开的实施例,程序安装模块610、共享目录开启模块620、共享目录关闭模块630和程序卸载模块640中的至少一个可以至少被部分地实现为硬件电路,例如现场可编程门阵列(FPGA)、可编程逻辑阵列(PLA)、片上系统、基板上的系统、封装上的系统、专用集成电路(ASIC),或可以通过对电路进行集成或封装的任何其他的合理方式等硬件或固件来实现,或以软件、硬件以及固件三种实现方式中任意一种或以其中任意几种的适当组合来实现。或者,程序安装模块610、共享目录开启模块620、共享目录关闭模块630和程序卸载模块640中的至少一个可以至少被部分地实现为计算机程序模块,当该计算机程序模块被运行时,可以执行相应的功能。According to the embodiment of the present disclosure, any multiple modules in the program installation module 610, the shared directory opening module 620, the shared directory closing module 630 and the program uninstalling module 640 can be combined into one module to implement, or any one of the modules can be implemented by Split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the program installation module 610, the shared directory opening module 620, the shared directory closing module 630 and the program unloading module 640 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA) ), programmable logic array (PLA), system-on-a-chip, system-on-substrate, system-on-package, application-specific integrated circuit (ASIC), or any other reasonable means of integrating or packaging circuits. Implementation, or implementation in any one of the three implementation methods of software, hardware and firmware or in an appropriate combination of any of them. Alternatively, at least one of the program installation module 610, the shared directory opening module 620, the shared directory closing module 630 and the program uninstalling module 640 can be at least partially implemented as a computer program module. When the computer program module is run, the corresponding function.
图7示意性示出了根据本公开实施例的共享目录管理方法的电子设备的方框图。FIG. 7 schematically shows a block diagram of an electronic device according to a shared directory management method according to an embodiment of the present disclosure.
如图7所示,根据本公开实施例的电子设备700包括处理器701,其可以根据存储在只读存储器(ROM)702中的程序或者从存储部分708加载到随机访问存储器(RAM)703中的程序而执行各种适当的动作和处理。处理器701例如可以包括通用微处理器(例如CPU)、指令集处理器和/或相关芯片组和/或专用微处理器(例如,专用集成电路(ASIC))等等。处理器701还可以包括用于缓存用途的板载存储器。处理器701可以包括用于执行根据本公开实施例的方法流程的不同动作的单一处理单元或者是多个处理单元。As shown in FIG. 7 , an electronic device 700 according to an embodiment of the present disclosure includes a processor 701 that can be loaded into a random access memory (RAM) 703 according to a program stored in a read-only memory (ROM) 702 or from a storage part 708 program to perform various appropriate actions and processes. Processor 701 may include, for example, a general-purpose microprocessor (eg, CPU), an instruction set processor and/or associated chipset, and/or a special-purpose microprocessor (eg, application specific integrated circuit (ASIC)), or the like. Processor 701 may also include onboard memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiment of the present disclosure.
在RAM703中,存储有电子设备700操作所需的各种程序和数据。处理器701、ROM702以及RAM703通过总线704彼此相连。处理器701通过执行ROM 702和/或RAM 703中的程序来执行根据本公开实施例的方法流程的各种操作。需要注意,所述程序也可以存储在除ROM702和RAM 703以外的一个或多个存储器中。处理器701也可以通过执行存储在所述一个或多个存储器中的程序来执行根据本公开实施例的方法流程的各种操作。In the RAM 703, various programs and data required for the operation of the electronic device 700 are stored. The processor 701, ROM 702 and RAM 703 are connected to each other through a bus 704. The processor 701 performs various operations according to the method flow of the embodiment of the present disclosure by executing programs in the ROM 702 and/or RAM 703. It should be noted that the program may also be stored in one or more memories other than ROM 702 and RAM 703. The processor 701 may also perform various operations according to the method flow of embodiments of the present disclosure by executing programs stored in the one or more memories.
根据本公开的实施例,电子设备700还可以包括输入/输出(I/O)接口705,输入/输出(I/O)接口705也连接至总线704。电子设备700还可以包括连接至I/O接口705的以下部件中的一项或多项:包括键盘、鼠标等的输入部分706;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分707;包括硬盘等的存储部分708;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分709。通信部分1109经由诸如因特网的网络执行通信处理。驱动器710也根据需要连接至I/O接口705。可拆卸介质711,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器710上,以便于从其上读出的计算机程序根据需要被安装入存储部分708。According to embodiments of the present disclosure, the electronic device 700 may further include an input/output (I/O) interface 705 that is also connected to the bus 704 . Electronic device 700 may also include one or more of the following components connected to I/O interface 705: an input portion 706 including a keyboard, mouse, etc.; including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and an output section 707 of speakers and the like; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem and the like. The communication section 1109 performs communication processing via a network such as the Internet. Driver 710 is also connected to I/O interface 705 as needed. Removable media 711, such as magnetic disks, optical disks, magneto-optical disks, semiconductor memories, etc., are installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage portion 708 as needed.
本公开还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的设备/装置/系统中所包含的;也可以是单独存在,而未装配入该设备/装置/系统中。上述计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被执行时,实现根据本公开实施例的方法。The present disclosure also provides a computer-readable storage medium. The computer-readable storage medium may be included in the device/device/system described in the above embodiments; it may also exist independently without being assembled into the device/system. in the device/system. The above computer-readable storage medium carries one or more programs. When the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
根据本公开的实施例,计算机可读存储介质可以是非易失性的计算机可读存储介质,例如可以包括但不限于:便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。例如,根据本公开的实施例,计算机可读存储介质可以包括上文描述的ROM702和/或RAM703和/或ROM702和RAM703以外的一个或多个存储器。According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, but is not limited to, portable computer disks, hard disks, random access memory (RAM), and read-only memory (ROM). , erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, the computer-readable storage medium may include one or more memories other than ROM 702 and/or RAM 703 and/or ROM 702 and RAM 703 described above.
本公开的实施例还包括一种计算机程序产品,其包括计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。当计算机程序产品在计算机系统中运行时,该程序代码用于使计算机系统实现本公开实施例所提供的方法。Embodiments of the present disclosure also include a computer program product including a computer program containing program code for performing the method illustrated in the flowchart. When the computer program product is run in the computer system, the program code is used to cause the computer system to implement the method provided by the embodiment of the present disclosure.
在该计算机程序被处理器701执行时执行本公开实施例的系统/装置中限定的上述功能。根据本公开的实施例,上文描述的系统、装置、模块、单元等可以通过计算机程序模块来实现。When the computer program is executed by the processor 701, the above-described functions defined in the system/device of the embodiment of the present disclosure are performed. According to embodiments of the present disclosure, the systems, devices, modules, units, etc. described above may be implemented by computer program modules.
在一种实施例中,该计算机程序可以依托于光存储器件、磁存储器件等有形存储介质。在另一种实施例中,该计算机程序也可以在网络介质上以信号的形式进行传输、分发,并通过通信部分709被下载和安装,和/或从可拆卸介质711被安装。该计算机程序包含的程序代码可以用任何适当的网络介质传输,包括但不限于:无线、有线等等,或者上述的任意合适的组合。In one embodiment, the computer program may rely on tangible storage media such as optical storage devices and magnetic storage devices. In another embodiment, the computer program can also be transmitted and distributed in the form of a signal on a network medium, and downloaded and installed through the communication part 709, and/or installed from the removable medium 711. The program code contained in the computer program can be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
在这样的实施例中,该计算机程序可以通过通信部分709从网络上被下载和安装,和/或从可拆卸介质711被安装。在该计算机程序被处理器701执行时,执行本公开实施例的系统中限定的上述功能。根据本公开的实施例,上文描述的系统、设备、装置、模块、单元等可以通过计算机程序模块来实现。In such embodiments, the computer program may be downloaded and installed from the network via communication portion 709 and/or installed from removable media 711 . When the computer program is executed by the processor 701, the above-described functions defined in the system of the embodiment of the present disclosure are performed. According to embodiments of the present disclosure, the systems, devices, devices, modules, units, etc. described above may be implemented by computer program modules.
根据本公开的实施例,可以以一种或多种程序设计语言的任意组合来编写用于执行本公开实施例提供的计算机程序的程序代码,具体地,可以利用高级过程和/或面向对象的编程语言、和/或汇编/机器语言来实施这些计算程序。程序设计语言包括但不限于诸如Java,C++,python,“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。According to the embodiments of the present disclosure, the program code for executing the computer program provided by the embodiments of the present disclosure may be written in any combination of one or more programming languages. Specifically, high-level procedural and/or object-oriented programming may be utilized. programming language, and/or assembly/machine language to implement these computational procedures. Programming languages include, but are not limited to, programming languages such as Java, C++, python, "C" language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In situations involving remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device, such as provided by an Internet service. (business comes via Internet connection).
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved. It will also be noted that each block in the block diagram or flowchart illustration, and combinations of blocks in the block diagram or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or operations, or may be implemented by special purpose hardware-based systems that perform the specified functions or operations. Achieved by a combination of specialized hardware and computer instructions.
本领域技术人员可以理解,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合或/或结合,即使这样的组合或结合没有明确记载于本公开中。特别地,在不脱离本公开精神和教导的情况下,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合。所有这些组合和/或结合均落入本公开的范围。Those skilled in the art will understand that the features described in the various embodiments and/or claims of the present disclosure may be combined or/or combined in various ways, even if such combinations or combinations are not explicitly described in the present disclosure. In particular, various combinations and/or combinations of features recited in the various embodiments and/or claims of the disclosure may be made without departing from the spirit and teachings of the disclosure. All such combinations and/or combinations fall within the scope of this disclosure.
以上对本公开的实施例进行了描述。但是,这些实施例仅仅是为了说明的目的,而并非为了限制本公开的范围。尽管在以上分别描述了各实施例,但是这并不意味着各个实施例中的措施不能有利地结合使用。本公开的范围由所附权利要求及其等同物限定。不脱离本公开的范围,本领域技术人员可以做出多种替代和修改,这些替代和修改都应落在本公开的范围之内。The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although each embodiment is described separately above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art can make various substitutions and modifications, and these substitutions and modifications should all fall within the scope of the present disclosure.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310868300.0A CN116955303B (en) | 2023-07-14 | 2023-07-14 | Shared directory management method, device, electronic device and medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310868300.0A CN116955303B (en) | 2023-07-14 | 2023-07-14 | Shared directory management method, device, electronic device and medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN116955303A true CN116955303A (en) | 2023-10-27 |
| CN116955303B CN116955303B (en) | 2025-09-26 |
Family
ID=88457757
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310868300.0A Active CN116955303B (en) | 2023-07-14 | 2023-07-14 | Shared directory management method, device, electronic device and medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116955303B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119669176A (en) * | 2024-12-03 | 2025-03-21 | 共青城市众陶联供应链服务有限公司 | A shared file management method, system, terminal device and storage medium |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007011844A (en) * | 2005-07-01 | 2007-01-18 | Canon Inc | File sharing system, file sharing method, and file sharing program |
| US20100174763A1 (en) * | 2009-01-05 | 2010-07-08 | International Business Machines Corporation | Software Inventorying System for a Shared File System |
| CN105404640A (en) * | 2015-10-21 | 2016-03-16 | 上海爱数信息技术股份有限公司 | Unified authority management based ZFS file system sharing method |
| US20160110555A1 (en) * | 2014-10-21 | 2016-04-21 | Institute For Information Industry | Resource sharing apparatus, method, and non-transitory computer readable storage medium thereof |
| US20170371894A1 (en) * | 2015-12-09 | 2017-12-28 | Phicomm (Shanghai) Co., Ltd. | Samba configuration management method and system for network device |
| CN114443166A (en) * | 2022-01-25 | 2022-05-06 | 苏州浪潮智能科技有限公司 | Shared file processing method, device and medium |
-
2023
- 2023-07-14 CN CN202310868300.0A patent/CN116955303B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007011844A (en) * | 2005-07-01 | 2007-01-18 | Canon Inc | File sharing system, file sharing method, and file sharing program |
| US20100174763A1 (en) * | 2009-01-05 | 2010-07-08 | International Business Machines Corporation | Software Inventorying System for a Shared File System |
| US20160110555A1 (en) * | 2014-10-21 | 2016-04-21 | Institute For Information Industry | Resource sharing apparatus, method, and non-transitory computer readable storage medium thereof |
| CN105404640A (en) * | 2015-10-21 | 2016-03-16 | 上海爱数信息技术股份有限公司 | Unified authority management based ZFS file system sharing method |
| US20170371894A1 (en) * | 2015-12-09 | 2017-12-28 | Phicomm (Shanghai) Co., Ltd. | Samba configuration management method and system for network device |
| CN114443166A (en) * | 2022-01-25 | 2022-05-06 | 苏州浪潮智能科技有限公司 | Shared file processing method, device and medium |
Non-Patent Citations (1)
| Title |
|---|
| 周莹: "共享网络资源 挖掘计算机潜能", 微型机与应用, no. 09, 7 September 1999 (1999-09-07) * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119669176A (en) * | 2024-12-03 | 2025-03-21 | 共青城市众陶联供应链服务有限公司 | A shared file management method, system, terminal device and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116955303B (en) | 2025-09-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11372997B2 (en) | Automatic audit logging of events in software applications performing regulatory workloads | |
| US10785228B2 (en) | On-demand security policy activation | |
| US11281621B2 (en) | Clientless active remote archive | |
| US20120246710A1 (en) | Dynamic, temporary data access token | |
| US20110145915A1 (en) | Method for managing authentication procedures for a user | |
| US11005847B2 (en) | Method, apparatus and computer program product for executing an application in clouds | |
| US10481756B2 (en) | Controlling application access to applications and resources via graphical representation and manipulation | |
| US8966247B2 (en) | Managing security certificates of storage devices | |
| US11113097B2 (en) | System and method for provisioning integration infrastructure at runtime indifferent to hybrid nature of endpoint applications | |
| CN101379504A (en) | Virtual character | |
| US20140325204A1 (en) | Device Management Macros | |
| US10673863B2 (en) | Managing inter-object operations in a domain role-based access control (RBAC) system | |
| CN105528251A (en) | Application notification information processing method and device and mobile terminal | |
| US10250586B2 (en) | Security certification and application categorization for mobile device management | |
| CN109460363B (en) | Automatic testing method and device, electronic equipment and computer readable medium | |
| US20110161332A1 (en) | Method and System for Policy Driven Data Distribution | |
| CN116955303A (en) | Shared directory management method, device, electronic equipment and medium | |
| CN107657155B (en) | Method and device for authenticating user operation authority | |
| US20150100615A1 (en) | Drag and drop of a uri to link resources | |
| US12361149B1 (en) | Project-based unified data analytics in a provider network | |
| CN114611144B (en) | Permission control method, device, equipment, medium and program product | |
| US11757976B2 (en) | Unified application management for heterogeneous application delivery | |
| CN111158649B (en) | Multi-level parameter configuration method and device | |
| US8868578B2 (en) | Building information technology services from a library of elements | |
| CN113343156A (en) | Webpage editing method, device, equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |