Modify Linux file permissions.
find . -name '*' -type d -exec chmod 755 {} \; find . -name '*' -type f -exec chmod 644 {} \;
#File: find.info, Node: Fixing Permissions, Next: Classifying Files, #Prev: St\ #range File Names, Up: Common Tasks # #Fixing Permissions #================== # # Suppose you want to make sure that everyone can write to the #directories in a certain directory tree. Here is a way to find #directories lacking either user or group write permission (or both), #and fix their permissions: # # find . -type d -not -perm -ug=w | xargs chmod ug+w # #You could also reverse the operations, if you want to make sure that #directories do _not_ have world write permission.
Last updated 2020-01-09 at 14:42:49

