Change permissions for a folder and all of its subfolders and files Linux

To change all permissions to the same type recursively:
chmod -R 775 /folder
To change all the directories to 755 (drwxr-xr-x):
find /folder -type d -exec chmod 755 {} \;
To change all the files to 644 (-rw-r--r--):
find /folder -type f -exec chmod 644 {} \;

2019-05-10 16:16:53


Add a Comment

Login or Register to post a Comment.