Sunday, November 3, 2019

Find directories of certain (744) permissions and change them to 755




For some reason some directories are set to 744 permission from when saved from some systems. 

They need to be 755 for the system to properly back them up.

This will change the permissions with a chmod after showing them.
find . -type d -perm 744 -print -exec ls -ld {} \;

find . -type d -perm 744 -exec chmod 755 {} \;

Nice page of examples of chmod is here

https://www.tecmint.com/35-practical-examples-of-linux-find-command/

--30--

No comments:

Post a Comment