1. 程式人生 > >Centos7設置文件夾寫入權限

Centos7設置文件夾寫入權限

所有 style sof 技術分享 bubuko info img mil mic

用 root 賬號執行chmod命令:

#chmod -R 777 dirPath               

參數 -R 表示遞歸,dirPath及其之內的所有文件夾、文件都被改變了權限。

例子:

#chmod -R 777 /home/user1/workspace 

使用命令前,用 ls -l dirPath查看文件夾權限信息:  

  技術分享圖片

使用命令後:
技術分享圖片

Centos7設置文件夾寫入權限