Do we have a way to 'chmod' all leading directories in linux?
For example,
when the permission of 'flex' directory in the path '/local_home/my_home/flex/source' is set to 000,
chmod 755 /local_home/my_home/flex/source/ will fail due to the permission of 'flex' directory.
I want to change all permissions of directories presented in the second parameter of 'chmod' command.
Do we have the solution?
Thank you in advance.