反馈已提交

网络繁忙

You are viewing 5.1 help doc. More details are displayed in the latest help doc.

File Permission Configuration in Linux

  • Recent Updates: August 24, 2022
  • Ⅰ. FineReport  Engineering Permission Description

    Problems that can be caused by missing permissions on files:

    • help: basically has no effect. If FRDemo.db does not have permission, the built-in Demo template cannot be previewed.

    • logs/cubes: Unable to collect buried points, swift query and write data.

    • scripts: Plugin management cannot be displayed.

    • WEB-INF/assets: Cannot read chart resources (chartmapsvg, map), cannot generate solidified files (clouds), cannot preview new engine templates (engine), cannot read and write caches (temp_attach), cannot generate backup templates (vcs).

    • WEB-INF/assist: Cloud operation and maintenance data package download (clouds), built-in plug-in update (update).

    • WEB-INF/classes: Custom class file calls.

    • WEB-INF/config: The configuration file in it cannot be read, and the related configuration is invalid, including migration, cluster, log, etc.

    • WEB-INF/embed: In the case of no migration, FineDB cannot be read, and the direct startup fails.

    • WEB-INF/lib: Failed to start.

    • WEB-INF/plugins: The plugin could not be loaded and cannot be used.

    • WEB-INF/reportlets: Could not read template file.

    • WEB-INF/resources: lic local registration failed.

    • WEB-INF/schedule: The timing schedule cannot generate the result file.

    Ⅱ. Permission related

    1. Permission to view files

    1) View command

    • ls -l: Indicates the permission to view all folders and files in the current directory.

    • ls -l xxx: Indicates the permission to view the xxx file or the files in the xxx folder.

    1623062600718125.png

    2) Permission Description

    1623063769138059.png

    Taking drwxr-xr-x as an example, there are a total of ten digits.

    d: file is -, folder is d.

    parameters 2-4: represent the permissions owned by the owner (user).

    Parameters 5-7: Represents the permissions possessed by the group  ( group ).

    The 8th to 10th parameters: represent the permissions that other people (other) have.

    r  indicates that the file can be read (read) .

    w  indicates that the file can be written (write) .

    x  indicates that the file can be executed (if it is a program).

    - Indicates that the corresponding permission has not been granted.

    The root root  after that is the user owner.

    3) Example description

    drwxr-xr-x=755 indicates the operation permissions of the directory. The root user has read, write and execute permissions, the root user group has read and execute permissions, and all other users have read and execute permissions.

    -rw-r--r--=644 indicates file operation permissions. The root user has read and write permissions, the root user group has read permissions, and all other users have read permissions.

    2. Modify permissions

    1) Modify permission statement

    1) Command line input: chmod o+w xxx.xxx

    Indicates granting permission to write the file xxx.xxx to others

    2) Command line input: chmod go-rw xxx.xxx

    Indicates to delete the read and write permissions of the group and others in xxx.xxx

    2) Details

    • u  represents the owner (user).

    • g  represents the group the owner is in ( group ).

    • o represents others, but not u and g (other).

    • a represents all people, that is, including u, g and o.

    • r  indicates that the file can be read (read).

    • w  indicates that the file can be written ( write ).

    • x  indicates that the file can be executed (if it is a program).

    • Among them: rwx can also be replaced by numbers

    • r ------------4

    • w -----------2

    • x ------------1

    • - ------------0

    Action:

    • +: means add permission

    • - : Indicates delete permission

    • =: Indicates making it the only permission

    Common explanations of some permissions below:

    -rw------- (600) Only the owner has read and write permissions.

    -rw-r--r-- (644) Only the owner has read and write permissions, while groups and others have only read permissions.

    -rwx------ (700) Only the owner has read, write, and execute permissions.

    -rwxr-xr-x (755) Only the owner has read, write, and execute permissions,  while groups and others only have read and execute permissions.

    -rwx--x--x (711) Only the owner has read, write, execute permissions, while groups and others only have execute permissions.

    -rw-rw-rw- (666) Everyone has read and write permissions.

    -rwxrwxrwx (777) Everyone has read, write and execute permissions.

    Attachment List


    Theme: Deployment Integration
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    售前咨询电话

    400-811-8890转1

    在线技术支持

    在线QQ:800049425

    热线电话:400-811-8890转2

    总裁办24H投诉

    热线电话:173-1278-1526

    文 档反 馈

    鼠标选中内容,快速反馈问题

    鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。

    不再提示

    10s后关闭