Basic knowledge
Explain the solution of permission denied under Linux
Permission denied:
The reason is that you do not have permission to read, write, create files, delete files, etc.
Solution: Enter the command sudo chmod - R 777/working directory,
For example: sudo chmode - R 777/home/HDD, you can perform a series of operations under this path.
Sudo: it is a linux system management instruction and a tool that allows system administrators to let ordinary users execute some or all root commands.
-R: It refers to all subdirectories and files in the directory of several medical companies;
777: refers to the highest authority that all users have.
But it is inconvenient and unsuitable for novices. Simple and crude methods are as follows:
Input in the command line
one
sudo passwd
He will prompt you to enter a new password. Enter the password again, just like the previous one. After success, enter
one
su root
Just enter the password again~
We media training
At this time, you will find that the $sign before you enter the command has changed into the # sign, which proves that you have succeeded
The following is the supplement of other netizens
Tips
Permission denied
Solution:
//777 Privilege Use with Caution is High Privilege
$sudo chmod - R 750 a directory
among
-R refers to cascade application to all subdirectories and files in the directory
750 means that the file owner has read, write and execute permissions, the file group has read and execute permissions, and other users have no permissions
Owner: rwx=4+2+1=7.
Genus: r-x=4+0+1=5.
Others: ---=0+0+0=0
Write, read, and execute permissions have the following numeric values:
R (read)=4
W (write)=2
X (executable)=1
No permission=0
The permission number of a specific user class is the sum of the permission values of that class.
The above is the whole content of this article. I hope it will be helpful to everyone's learning, and I hope you can support the script home more.