Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to solve the problem of insufficient permissions when linux opens a directory

Shulou Source: shulou.com Published: 2022-06-03 00:26:12 10月21日 Update

In this issue, the editor will bring you about to solve the problem of insufficient authority when linux opens the directory. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

Solution:

Sudo-s # enters root user mode and remains in the original directory (do not use su-root, otherwise you will enter the root directory) cd / var/lib # enter the specified directory ll # to view all the file permissions in this directory chmod 777 files-name # change the permissions of the specified files

Knowledge points to add:

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

-rw--- (600) only the owner has read and write permission

-rw-r-r- (644) only the owner has read and write access, and groups and others only have read permission

-rwx-- (700) only the owner has the permission to read, write and execute

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

-rwx-x-x (711) only the owner has the permission to read, write, and execute, and groups and others only have the permission to execute

-rw-rw-rw- (666) everyone has read and write access

-rwxrwxrwx (777) everyone has access to read, write and execute

How does "755" form: "0" indicates no permission, "1" indicates executable permission, "2" indicates writeable permission, and "4" indicates readable permission. "7 million 1 2 4 5 # 1 4"

The above is the method shared by the editor to solve the problem of insufficient permissions when linux opens the directory. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Tags: Permissions only directories owners files not enough questions tips content methods knowledge analysis professional small and medium rich content that is numbers articles more patterns Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Microsoft Linux NVidia macOS