I have been using macOS for more than 2 years now, and after a fresh reinstall I cannot do
sh-3.2# sudo chmod 777 -R .
chmod: -R: No such file or directory
I can change permissions on my folder not recursively, that means the error appears when I am using the -R
option.
Is there a way to fix this in my computer? maybe installing another unix shell ?
Try
sudo chmod -R 777 .
Access mask should be placed after options