Linux uploads files without permission, add file permission command

1. Enter the directory that needs to be uploaded
 cd  需要被上传的目录路径
2. Obtain root authority, this command switches the user to root, and does not require the root password, just enter the current user password
sudo su 
3. Add file permissions, -R can allow subfolders under the folder to also be given upload permissions
sudo chmod -R 777 文件夹路径名

Guess you like

Origin blog.csdn.net/ABCAA1024/article/details/125678677