How can I change folder and file permissions for all files and folders recursively inside current directory? I am not sure, why, but my command fails with this
output: chmod: missing operand after '644./components/path/path/path'
My command is:
find . * -type d -exec chmod 755{} \;
As user pdo pointed, I want change folder permissions to 755-
Best Answer
You're missing a space after 644.
Also, 644 is probably not what you want on a directory. You probably want 755.
Edit to include answer from comments below:
For directories:
find . -type d -exec chmod 755 {} \;
For files:
find . -type f -exec chmod 644 {} \;
There's very likely other ways (maybe shorter) to do this, but this will work.