I've made a Makefile to simplify my life, and this Makefile calls a script in a bin file I've created. After running my command
make something, I got following error :
/bin/sh: 1: .docker/bin/echo-title: Permission denied
After searching a bit and thanks to this answer, I gave execute permission to the user who created the file (aka: me) with
chmod command. My question is : Since I'm the owner of the file, shouldn't I have execute permission right away? And if not... why?
This is for a personal project, but at work we're also using Makefiles and bin scripts, exactly this way (I actually copied and pasted the base content of the files) and I don't have to run a chmod command to run the scripts. Why is that so?
(Running other commands in the Makefile that don't involve bin script work well.)