Method for managing Linux compiling authority

A technology of authority management and authority, which is applied in the field of Linux compilation authority management, can solve problems such as troublesome compilation authority, and achieve the effect of saving development time and reducing misuse

Inactive Publication Date: 2010-08-04
SHANGHAI NORMAL UNIVERSITY
View PDF1 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The purpose of the present invention is to provide a kind of Linux compiling authority management method, to solve all kinds of troubles brought by the limitation of compiling authority aspect in the development of Linux project team in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for managing Linux compiling authority
  • Method for managing Linux compiling authority

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] Such as figure 1 As shown, an embodiment of the present invention mainly includes following 3 steps:

[0023] 1. Change the project code owner to a normal user with root privileges

[0024] [tianzhen@TWShanghai~]$chown tianzhen 16160 / -R

[0025] 2. Delete some directories of the project code with root privileges

[0026] Some directories need to be deleted with root authority even if the owner is changed to an ordinary user. This is due to the copying of device files, and root authority is required for decompression.

[0027] [tianzhen@TWShanghai rootfs]$rm-rf dev /

[0028] 3. Ordinary users dynamically create device files through scripts

[0029] Modify the Makefile and delete the statement above to create the device file with root authority. At the same time, modify Makefile.custom, add mkdev script, and use this script to automatically create device files.

[0030] Add the following statement:

[0031] genRootfs:genVersion

[0032] ...

[0033] @rm -rf $(ROO...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for managing a Linux compiling authority, which comprises: giving item codes of item code owners to common users by using a root authority; deleting directories, that can be deleted only by using the root authority, of the item codes by using the root authority; and allowing the common users to create equipment files dynamically by using scripts, wherein the creation process comprises correcting Makefile, deleting SQL statements for creating the equipment file by using the root authority, changing Makefile.custom, adding a mkdev script and automatically creating the equipment file by using the script. The method changes a project that can be compiled only by root users into a project that can be complied by users with common authorities and allow equipment directories to be created directly and dynamically through the scripts.

Description

technical field [0001] The invention belongs to the technical field of software development, in particular to a method for managing Linux compiling rights. Background technique [0002] In recent years, with the rapid development of informatization, modularization, networking, and industrialization in various industries, the Linux operating system has become the first choice for most embedded devices with its high-efficiency, scalable kernel, open source code, and support from many manufacturers. The operating system; because of its customizability, it has been widely used in consumer electronics, manufacturing, industrial control, network communication, security, banking and other fields. [0003] The development threshold in the Linux environment is relatively high. Since the graphical IDE environment is hardly used, a large number of files and a large number of code compilations need to write multi-layer makefiles and custom and sh files, which requires senior engineers t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/44
Inventor 杨敏田臻
Owner SHANGHAI NORMAL UNIVERSITY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products