I am doing the 9th task for linux in engineer kodekloud. It asks to make a file executable for all users. I am implementing the following code:
sudo chmod a+x /tmp/xfusioncorp.sh
when I submit, it says the file is not executable.
I am doing the 9th task for linux in engineer kodekloud. It asks to make a file executable for all users. I am implementing the following code:
sudo chmod a+x /tmp/xfusioncorp.sh
when I submit, it says the file is not executable.
You need read permissions as well to be able to execute a shell script.
Thanks … it worked! But why do I need to give it a read permission?
It is because the shell (like bash or sh) needs to read the script’s contents in order to execute them.