Linux file Permission Task

Hi @mmumshad @KodeKloud , I have given required execution permission in this task, but it is marked as failed, could you please check. I have also raised request for validation from Tasks menu.
image

Hi @Asthik

In order to allow the interpreter to execute this script you need to set the read permissions as well. I hope this will be helpful.

Thank you, my task is under review. So once it is available I will finish it.

Hi @Asthik

sudo chmod a+x xfusioncorp.sh

This is correct right we are giving permission to all users and ask them to execute as well (where a-- stands for all and x – means execute permissions). Please someone clarify what is wrong. Even my task also got failed.

Can someone please clarify what is the issue here and how to rectify…!! Thanks In Advance.

Hi @NareshK, you need to give read permissions as well, since bash interpreter cannot read without having read permissions. That was the issue in my case as well. All users should have read & execution permission in order for the script to work for all users. Hope this helps.

Thanks @Asthik yeah it helps. I have checked it later.

Much appreciated for your response.