Permission denied Solution

Permission denied: Permission denied, do not have permission to access the file.

Query permissions to the file:

ls -l 文件名称

r is read permission, w is write permission, x is executable permission.

Authority rwx, read-write executables permissions:

chmod 777 文件名称

If the destination is a folder:

chmod -R 777 指定目录

-R refers to cascade apply all the subdirectories and files to the directory where the
777 is that all users have the highest authority

If the current user is a non administrator:

sudo chmod -R 777 指定文件或目录

 

Published 57 original articles · won praise 10 · views 20000 +

Guess you like

Origin blog.csdn.net/zh_1721342390/article/details/104753997