Chmod error don't understand #27180
-
I’m following this tutorial for CD but got chmod error return. I tried to look for the usage and error but still don’t understand what it means. Was there a syntax problem or incorrect path? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It’s a syntax error. Chmod is used to change filesystem permissions, and you need to give it the permission change you want and the file(s) to modify, in that order. The permission specification is missing in your command. On the other hand, sudo shouldn’t be necessary to modify a file from your repository. |
Beta Was this translation helpful? Give feedback.
-
Thank you. I did chmod 755 to give the permission and it works. |
Beta Was this translation helpful? Give feedback.
It’s a syntax error. Chmod is used to change filesystem permissions, and you need to give it the permission change you want and the file(s) to modify, in that order. The permission specification is missing in your command.
On the other hand, sudo shouldn’t be necessary to modify a file from your repository.