What does permission denied mean?

Friends who often use the Linux system may encounter the error message of permission denied during the operation process. Many friends do not know what permission denied means, nor how to solve this problem. Today, I love programming as Let me introduce the solution to Permission denied. Friends in need can refer to:

What does permission denied mean
? 1. What does it mean:
The Chinese meaning of permission denied is: deny access. That is, there is no corresponding execution permission
insert image description here

What does permission denied mean?
2. Reasons:
(1) Insufficient file permissions;

(2)、用户权限不足;

3. Solutions:
(1). Check the file permissions. If the permissions are insufficient, grant execution permissions. You can use the chmod command to change the file permissions

sudo chmod 777 specifies the file or directory
PS: -R refers to the cascading application to all subdirectories and files in the directory; 777 means that all users have the highest authority, pay attention when modifying the authority, and do not modify the system file permissions

(2)、查看当前用户是否为root用户,如果非root用户的话,可以使用su命令切换到root用户继续执行我们的操作

What does permission denied mean?

insert image description here

Guess you like

Origin blog.csdn.net/weixin_43214644/article/details/122730527