chmod just directories 1

chmod just directories

find /path/to/base/dir -type d -exec chmod 755 {} +

Here is what the above code is Doing:
1. find all directories in the base directory
2. for each directory, execute the chmod command with the directory as the argument
3. the chmod command sets the permissions to 755

Similar Posts