只修改文件夹中文件的permission


One approach could be using find:

for directories
find /desired_location -type d -print0 | xargs -0 chmod 0755


for files
find /desired_location -type f -print0 | xargs -0 chmod 0644

 

来源:https://stackoverflow.com/questions/18817744/change-all-files-and-folders-permissions-of-a-directory-to-644-755

posted @ 2024-01-25 23:11  profesor  阅读(3)  评论(0编辑  收藏  举报